github bazel-contrib/bazel-gazelle 0.11.0

latest releases: v0.40.0, v0.39.1, v0.39.0...
pre-release6 years ago

New features

  • Gazelle now generates a single go_test target when both internal and
    external test sources are present. This allows external tests to depend on
    definitions within internal tests. gazelle fix will squash or rename
    existing rules named "go_default_xtest".
  • srcs attributes are now flat: they will no longer contain platform-specific
    select expressions. rules_go will filter sources with build constraints
    automatically. This allows broader usage of the goos and goarch attributes
    in go_binary, but there are still problems with select in deps. See the
    cross-compile FAQ
    for more information.
  • importmap attributes are added for go_library and go_proto_library rules
    in vendor directories. This prevents conflicts when multiple packages with
    the same importpath are linked into the same binary.
  • Proto imports of Well Known Types are now resolved to standard locations in
    @io_bazel_rules_go//proto/wkt.
  • go_repository now supports a build_extra_args attribute, allowing
    additional arguments to be passed to Gazelle during build file generation.
  • gazelle update-repos will now load go_repository from @bazel_gazelle.
    The old copy in @io_bazel_rules_go is deprecated. gazelle fix will also
    fix this.

Notes

  • The minimum compatible version of rules_go is now 0.11.0. This is primarily
    due to the need for importmap on go_proto_library. Older versions may
    work if you're not using protos.

Don't miss a new bazel-gazelle release

NewReleases is sending notifications on new releases.