Skip to content

v0.20.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jayconrod jayconrod released this 06 Feb 18:29
9b9f022

General changes

  • When update-repos is invoked with -to_macro, Gazelle will add a call to the macro and a # gazelle:repository_macro directive to WORKSPACE if neither is present.

Go changes

  • Gazelle will avoid generating duplicate go_repository rules when two module paths differ only in case. Thanks to @linzhp.
  • When deriving a repository name from an import path, all non-word characters will be replaced with underscores, not just dots and slashes. Consecutive non-word characters will be collapsed to a single underscore. Thanks to @carnott-snap.
  • Imported repository rules are now sorted.

Proto changes

  • Gazelle will add load statements for proto_library to comply with --incompatible_load_proto_rules_from_bzl. Thanks to @Yannic.
  • Fixed a bug recognizing services in .proto files. Thanks to @asv.