github bazel-contrib/bazel-gazelle 0.17.0

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

Language agnostic changes

  • The # gazelle:map_kind directive can now be used to generate rules of
    alternative kinds. For example, instead of generating go_binary rules,
    you could generate a call to a macro that takes the same arguments
    (for example, go_image, go_deployable). Thanks to @robfig!
  • Gazelle exits with status 1 when run with -mode=diff when there are
    differences. Thanks to @mjduijn and @achew22!
  • Hidden directories are included when walking the directory tree. Thanks to
    @linzhp.

Go changes

  • go_repository now works with Go 1.12.
  • The update-repos command now lets you set attributes such as build file
    names and proto modes on the command line. Thanks to @blico!
  • Alternative compilers can now be set on go_proto_library rules with the
    -go_proto_compiler and -go_grpc_compiler flags. Thanks to @bartle-stripe!
  • Go repositories may now be imported from Godep. Thanks to @GauntletWizard!
  • Imports that can't be resolved using the index when the index is enabled
    are now resolved as external, even if they're under the current prefix.
    This is necessary to handle cases where one repository path is a prefix
    of another. Thanks to @linzhp!

Proto changes

  • The new proto_library attributes import_prefix and strip_import_prefix
    may be set with the # gazelle:proto_import_prefix and
    # gazelle:proto_strip_import_prefix directives or the -proto_import_prefix
    command line argument. Thanks to @blico!

Don't miss a new bazel-gazelle release

NewReleases is sending notifications on new releases.