This release requires rules_go 0.29 to support the retirement of go_tool_library
.
IMPORTANT
This release includes many new dependencies. Please be sure that your own workspace's dependencies are declared PRIOR to gazelle_dependencies()
, or else they may be overridden. See the prompt block comment in the boilerplate below.
Changes
- .netrc files are now supported for authenticated access for
go_repository
rules (#1090) - There is now a Gazelle extension for authoring BUILD files for the R language, using rules_r.
Fixes
- language/go: don't let 'go mod download' edit go.sum by @jayconrod in #1015
- Label fix: properly parse external references to the main repository by @tfrench-uber in #1006
- gazelle: add -e flag for go list 1.16 by @axelberardino in #1019
- Correctly propagate runfiles from gazelle_bin to gazelle by @HALtheWise in #1008
- Support Label @repo -> @repo//:repo shorthand by @wolfd in #1023
- language/go: rewrite embedResolver to use a tree structure by @jayconrod in #1024
- Respect .bazelignore by @Michaelhobo in #1022
- Change merge behavior to remove attrs instead of panicking by @wolfd in #1031
- Allow ListRepositories to load macros not in Workspace by @tfrench-uber in #1053
- Honor host GOMODCACHE when GO_REPOSITORY_USE_HOST_CACHE by @linzhp in #1069
- language/go: add golang.org/x/tools/internal/typeparams to nogo deps list by @jayconrod in #1074
- Fix "exclude" token parsing by @gibfahn in #1073
- Have label properly resolve directives starting with "@//" by @tfrench-uber in #1086
- Correctly propagate runfiles from data dependencies to gazelle by @alexeagle in #1094
- Add bzl_library targets to Gazelle by @achew22 in #760
- Escape vars in cgo flags with an extra $ by @dierksen in #1107
- autogazelle can build on windows by @asuffield in #1083
- and many documentation updates by @tanyabouman
Full Changelog: v0.23.0...v0.24.0
WORKSPACE
code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_gazelle",
sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.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()