Releases: bazel-contrib/bazel-gazelle
Releases · bazel-contrib/bazel-gazelle
0.10.0
- The command
gazelle update-repos example.com/repoadds a newgo_repositoryrule or updates an existinggo_repositoryrule in WORKSPACE. - Gazelle now removes
importpathattributes fromgo_binaryandgo_testrules, since these are deprecated. go_binaryrules can be renamed and still be updated by Gazelle. Only onego_binaryper package though.go_library,go_proto_library, andgo_repositoryrules can be renamed as long as theimportpathstill matches.- Rules are now deleted in directories that have no buildable Go or proto source files.
- New tool:
cmd/move_labelsupdates labels in build files after a directory is moved. This is useful for vendoring repositories that already have build files. - Added experimental
git_repositoryandhttp_archiveoverlay repository rules. These rules fetch a repository and copy a set of pre-generated build files. All dependencies in@io_bazel_rules_goand@bazel_gazellenow use these rules. - Gazelle now follows symlinks that point outside of the workspace (thanks @yasushi-saito!)
0.9
- Added the
update-reposcommand.- This can be used to import dependencies from dep's Gopkg.lock file as
go_repositoryrules in WORKSPACE. - This should support more vendoring formats in the future.
- We also plan to be able to add repositories automatically using unresolved import paths.
- This can be used to import dependencies from dep's Gopkg.lock file as
- Added the
helpcommand. go_grpc_libraryrules are now migrated togo_proto_libraryrules with acompilersattribute.- The
prefixattribute is now optional in thegazellerule. - Strings are never duplicated between generic, OS-specific, architecture-specific, and OS-and-architecture-specific sections in
srcs,deps, and other attributes. This fixes an error that Bazel reports when the same dependency appeared to be OS-specific and architecture-specific. - Merged rules may now be deleted if they have no attributes that make them buildable (e.g.,
srcs,deps,embed). Previously, rules couldn't be deleted if they had attributes other thannameandvisibility. This caused rules to be preserved that only had attributes likeprotoandimportpath.