v0.25.0
Go changes
- Introduce static dependency resolution mode which prevents Gazelle from calling out the network.
go_repository
rules now default to this mode, showing significant performance improvements for some repo rules by @blico in #1201 go_repository
rules no longer log Gazelle warnings, unlessdebug
mode is explictly set by @blico in #1205- Support
canonical_id
attribute forgo_repository
by @kmicklas in #1121
Proto changes
General changes
- gazelle_generation_test utility for running the gazelle binary on a set of test workspaces by @aptenodytes-forsteri in #1183
- Introduced
rule.AddAlias
func to support loading aliased symbols by @dorfire in #1127 FixLoad
now generatesload
statements for helper functions by @illicitonion in #1164- Many more bug fixes and documentation updates, thanks to everyone who helped out!
Full Changelog: v0.24.0...v0.25.0
WORKSPACE
code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_gazelle",
sha256 = "5982e5463f171da99e3bdaeff8c0f48283a7a5f396ec5282910b9e8a49c0dd7e",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.25.0/bazel-gazelle-v0.25.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.25.0/bazel-gazelle-v0.25.0.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
############################################################
# Define your own dependencies here using go_repository.
# Else, dependencies declared by rules_go/gazelle will be used.
# The first declaration of an external repository "wins".
############################################################
gazelle_dependencies()