Releases: bazel-contrib/bazel-gazelle
Releases · bazel-contrib/bazel-gazelle
v0.47.0
v0.46.0
What's Changed
- fix: populate walk cache for all walk modes by @jbedard in #2158
- docs: update Swift gazelle plugin reference to correct repository by @cgrindel in #2159
- Realign diff mode exit code with other modes. by @alandonham in #2165
- Adding unit test to ensure behavior of mode=diff by @alandonham in #2166
- ignore godebug directive in go.mod and go.work #2167 by @SaurabhDRao in #2168
- support new ignore directive in go.mod by @lbcjbb in #2169
- Add directives to build github.com/thanos-io/thanos/cmd/thanos by @zecke in #2086
- perf: populate walk cache in background by @jbedard in #2161
- moduleFromPath don't need go mod download by @xuxife in #2178
- Stop using deprecated go.new_library() and go.library_to_source() by @EdSchouten in #2180
- Invalidate go_repository_cache when host env vars change by @linzhp in #2183
- language/proto: implement lazy indexing by @jayconrod in #2185
- refactor: remove unreachable code by @jbedard in #2160
- language/go: set visibility correctly for nested internal directories by @jayconrod in #2187
- docs: document lazy indexing by @jayconrod in #2188
- language/bazel/visibility: add to cmd/gazelle and DEFAULT_LANGUAGES by @jayconrod in #2190
- Add test coverage for external Go submodules by @fmeum in #2191
- README.rst: fix code formatting by @jayconrod in #2192
- build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /tests/bcr/go_mod by @dependabot[bot] in #2193
- Automatically deleting corrupted Go module cache by @linzhp in #2194
- README: translate from reStructuredText to Markdown by @jayconrod in #2197
- Design: translate from reStructuredText to Markdown by @jayconrod in #2198
- chore: update bazelbuild/buildtools, bmatcuk/doublestar by @jbedard in #2203
- perf: dont use sprintf for simple string concat by @jbedard in #2205
- perf: avoid use of reflection when generating bzl expressions by @jbedard in #2204
- config: fix nil pointer exception in update help by @jayconrod in #2202
- Commit MODULE.bazel.lock file by @jayconrod in #2209
- fix: only return requested dirinfo on GetDirInfo error by @jbedard in #2212
- language/go: handle cgo noescape and nocallback directives by @torin-carey in #2217
- CI: sync BCR and presubmit tests by @jayconrod in #2218
- CI: hopefully fix BCR tests by @jayconrod in #2220
New Contributors
- @SaurabhDRao made their first contribution in #2168
- @lbcjbb made their first contribution in #2169
- @xuxife made their first contribution in #2178
- @dependabot[bot] made their first contribution in #2193
- @torin-carey made their first contribution in #2217
Full Changelog: v0.45.0...v0.46.0
v0.46.0-rc3
What's Changed
- fix: populate walk cache for all walk modes by @jbedard in #2158
- docs: update Swift gazelle plugin reference to correct repository by @cgrindel in #2159
- Realign diff mode exit code with other modes. by @alandonham in #2165
- Adding unit test to ensure behavior of mode=diff by @alandonham in #2166
- ignore godebug directive in go.mod and go.work #2167 by @SaurabhDRao in #2168
- support new ignore directive in go.mod by @lbcjbb in #2169
- Add directives to build github.com/thanos-io/thanos/cmd/thanos by @zecke in #2086
- perf: populate walk cache in background by @jbedard in #2161
- moduleFromPath don't need go mod download by @xuxife in #2178
- Stop using deprecated go.new_library() and go.library_to_source() by @EdSchouten in #2180
- Invalidate go_repository_cache when host env vars change by @linzhp in #2183
- language/proto: implement lazy indexing by @jayconrod in #2185
- refactor: remove unreachable code by @jbedard in #2160
- language/go: set visibility correctly for nested internal directories by @jayconrod in #2187
- docs: document lazy indexing by @jayconrod in #2188
- language/bazel/visibility: add to cmd/gazelle and DEFAULT_LANGUAGES by @jayconrod in #2190
- Add test coverage for external Go submodules by @fmeum in #2191
- README.rst: fix code formatting by @jayconrod in #2192
- build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /tests/bcr/go_mod by @dependabot[bot] in #2193
- Automatically deleting corrupted Go module cache by @linzhp in #2194
- README: translate from reStructuredText to Markdown by @jayconrod in #2197
- Design: translate from reStructuredText to Markdown by @jayconrod in #2198
- chore: update bazelbuild/buildtools, bmatcuk/doublestar by @jbedard in #2203
- perf: dont use sprintf for simple string concat by @jbedard in #2205
- perf: avoid use of reflection when generating bzl expressions by @jbedard in #2204
- config: fix nil pointer exception in update help by @jayconrod in #2202
- Commit MODULE.bazel.lock file by @jayconrod in #2209
- fix: only return requested dirinfo on GetDirInfo error by @jbedard in #2212
- language/go: handle cgo noescape and nocallback directives by @torin-carey in #2217
- CI: sync BCR and presubmit tests by @jayconrod in #2218
- CI: hopefully fix BCR tests by @jayconrod in #2220
New Contributors
- @SaurabhDRao made their first contribution in #2168
- @lbcjbb made their first contribution in #2169
- @xuxife made their first contribution in #2178
- @dependabot[bot] made their first contribution in #2193
- @torin-carey made their first contribution in #2217
Full Changelog: v0.45.0...v0.46.0-rc3
v0.46.0-rc2
What's Changed
- fix: populate walk cache for all walk modes by @jbedard in #2158
- docs: update Swift gazelle plugin reference to correct repository by @cgrindel in #2159
- Realign diff mode exit code with other modes. by @alandonham in #2165
- Adding unit test to ensure behavior of mode=diff by @alandonham in #2166
- ignore godebug directive in go.mod and go.work #2167 by @SaurabhDRao in #2168
- support new ignore directive in go.mod by @lbcjbb in #2169
- Add directives to build github.com/thanos-io/thanos/cmd/thanos by @zecke in #2086
- perf: populate walk cache in background by @jbedard in #2161
- moduleFromPath don't need go mod download by @xuxife in #2178
- Stop using deprecated go.new_library() and go.library_to_source() by @EdSchouten in #2180
- Invalidate go_repository_cache when host env vars change by @linzhp in #2183
- language/proto: implement lazy indexing by @jayconrod in #2185
- refactor: remove unreachable code by @jbedard in #2160
- language/go: set visibility correctly for nested internal directories by @jayconrod in #2187
- docs: document lazy indexing by @jayconrod in #2188
- language/bazel/visibility: add to cmd/gazelle and DEFAULT_LANGUAGES by @jayconrod in #2190
- Add test coverage for external Go submodules by @fmeum in #2191
- README.rst: fix code formatting by @jayconrod in #2192
- build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /tests/bcr/go_mod by @dependabot[bot] in #2193
- Automatically deleting corrupted Go module cache by @linzhp in #2194
- README: translate from reStructuredText to Markdown by @jayconrod in #2197
- Design: translate from reStructuredText to Markdown by @jayconrod in #2198
- chore: update bazelbuild/buildtools, bmatcuk/doublestar by @jbedard in #2203
- perf: dont use sprintf for simple string concat by @jbedard in #2205
- perf: avoid use of reflection when generating bzl expressions by @jbedard in #2204
- config: fix nil pointer exception in update help by @jayconrod in #2202
- Commit MODULE.bazel.lock file by @jayconrod in #2209
- fix: only return requested dirinfo on GetDirInfo error by @jbedard in #2212
- language/go: handle cgo noescape and nocallback directives by @torin-carey in #2217
- CI: sync BCR and presubmit tests by @jayconrod in #2218
New Contributors
- @SaurabhDRao made their first contribution in #2168
- @lbcjbb made their first contribution in #2169
- @xuxife made their first contribution in #2178
- @dependabot[bot] made their first contribution in #2193
- @torin-carey made their first contribution in #2217
Full Changelog: v0.45.0...v0.46.0-rc2
v0.46.0-rc1
What's Changed
- fix: populate walk cache for all walk modes by @jbedard in #2158
- docs: update Swift gazelle plugin reference to correct repository by @cgrindel in #2159
- Realign diff mode exit code with other modes. by @alandonham in #2165
- Adding unit test to ensure behavior of mode=diff by @alandonham in #2166
- ignore godebug directive in go.mod and go.work #2167 by @SaurabhDRao in #2168
- support new ignore directive in go.mod by @lbcjbb in #2169
- Add directives to build github.com/thanos-io/thanos/cmd/thanos by @zecke in #2086
- perf: populate walk cache in background by @jbedard in #2161
- moduleFromPath don't need go mod download by @xuxife in #2178
- Stop using deprecated go.new_library() and go.library_to_source() by @EdSchouten in #2180
- Invalidate go_repository_cache when host env vars change by @linzhp in #2183
- language/proto: implement lazy indexing by @jayconrod in #2185
- refactor: remove unreachable code by @jbedard in #2160
- language/go: set visibility correctly for nested internal directories by @jayconrod in #2187
- docs: document lazy indexing by @jayconrod in #2188
- language/bazel/visibility: add to cmd/gazelle and DEFAULT_LANGUAGES by @jayconrod in #2190
- Add test coverage for external Go submodules by @fmeum in #2191
- README.rst: fix code formatting by @jayconrod in #2192
- build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /tests/bcr/go_mod by @dependabot[bot] in #2193
- Automatically deleting corrupted Go module cache by @linzhp in #2194
- README: translate from reStructuredText to Markdown by @jayconrod in #2197
- Design: translate from reStructuredText to Markdown by @jayconrod in #2198
- chore: update bazelbuild/buildtools, bmatcuk/doublestar by @jbedard in #2203
- perf: dont use sprintf for simple string concat by @jbedard in #2205
- perf: avoid use of reflection when generating bzl expressions by @jbedard in #2204
- config: fix nil pointer exception in update help by @jayconrod in #2202
- Commit MODULE.bazel.lock file by @jayconrod in #2209
- fix: only return requested dirinfo on GetDirInfo error by @jbedard in #2212
New Contributors
- @SaurabhDRao made their first contribution in #2168
- @lbcjbb made their first contribution in #2169
- @xuxife made their first contribution in #2178
- @dependabot[bot] made their first contribution in #2193
Full Changelog: v0.45.0...v0.46.0-rc1
v0.45.0
What's Changed
- Test against latest release candidates in BCR presubmit by @fmeum in #2112
- docs: add gazelle_cc pointer by @alexeagle in #2114
- go.mod 'tool' directive may refer to a package at module-root by @dzbarsky in #2115
- Update bazel-skylib in WORKSPACE setup by @fmeum in #2116
- Speedup known os/arch checks by @dzbarsky in #2100
- Add support for
--repo_contents_cacheby @fmeum in #2119 - Enable Bzlmod for the main repo by @fmeum in #2118
- Add special handling for extracting explicit package name from rule name if being part of
go_packageby @WojciechMazur in #2122 - docs: use stardoc for reference documentation only by @jayconrod in #2125
- Fix missing go_env when running Gazelle by @guw in #2128
- Test with Bazel 8 by @fmeum in #2120
- Add default overrides for spicedb support by @faximan in #2131
- fix: only pass walked dir content to single callback by @jbedard in #2134
- Remove usage of deprecated package_list on Go context by @dzbarsky in #2135
- merger: fix symbol assigned by @hunshcn in #2136
- refactor: update bazel target for go_features by @isgj in #2138
- walk: expose cached GetDirInfo by @jayconrod in #2141
- rule: add MatchGlobExpr for parsing glob expressions by @jayconrod in #2142
- Fix interfing proto.Mode - taking into account mode module apparent names by @WojciechMazur in #2143
- Fix target names when running in
packageproto mode by @jgautier-dd in #2144 - Accept more forms of glob values when parsing
bzl.Exprby @WojciechMazur in #2145 - fix FixLoads issue with list of symbols by @tzaman-stripe in #2147
- Propagate to Gazelle extensions
proto_libraryname achieved after merging with BUILD file by @WojciechMazur in #2150 - Upgrade
package_metadatato 0.0.5 (was 0.0.2) by @WojciechMazur in #2155 - Removing restriction on cgo in go_test by @linzhp in #2154
- pathtools: add Prefixes helper function by @jayconrod in #2152
- walk: allow GetDirInfo to be called in directories not visited yet by @jayconrod in #2153
- Extract either Module/Workspace RepoName in
CommonConfigurerby @WojciechMazur in #2157
New Contributors
- @guw made their first contribution in #2128
- @isgj made their first contribution in #2138
- @jgautier-dd made their first contribution in #2144
- @tzaman-stripe made their first contribution in #2147
Full Changelog: v0.44.0...v0.45.0
v0.44.0
What's Changed
- walk: fix BenchmarkWalk by @jayconrod in #2072
- walk: refactor and add Walk2 function by @jayconrod in #2073
- walk, language: support lazy indexing by @jayconrod in #2074
- walk: better error checking in strict mode for RelsToVisit by @jayconrod in #2077
- Work around incompatibility between zlib and clang 17 by @fmeum in #2082
- go_grpc_compiler: default to go_grpc_v2 by @sluongng in #2071
- table fix by @sluongng in #2083
- Add
package_metadatatoREPO.bazelby @Yannic in #2081 - Add go_features.proto to list of known protos by @mrdomino in #2080
- Cleanup: Just updating comments as I read by @stefanpenner in #2087
- language/go: support lazy indexing with go_search directive by @jayconrod in #2075
- Keep
use_repos needed fortools by @fmeum in #2091 - Don't drop
-bzlmodarg when args are explicitly provided by @fmeum in #2092 - Run buildifier to add explicit loads and update rules_go by @fmeum in #2090
- Add build file generation override for cel.dev/expr by @jasonkuster in #2096
- language/go: add implicit go_search path when prefix is set by @jayconrod in #2095
- fix: correct attribute name in message by @ash2k in #2098
- Avoid allocations in fileNameInfo by @dzbarsky in #2099
- fix: normalize RelsToVisit by @jbedard in #2104
- Add k8s.io/cri-api k8s.io/apiserver default overrides by @hunshcn in #2107
- Replace illegal characters in underscores when deriving proto RuleName by @WojciechMazur in #2105
- perf: remove extraneous isExcluded(dir) checks by @jbedard in #2106
- indexing all parents of visited directories by @linzhp in #2109
- language/go: allow clean as argument to -build_file_generation by @oncilla in #2111
- Trim BCR versions before comparing them to Go versions by @fmeum in #2066
- Avoid duplicates in relToIndex by @linzhp in #2110
New Contributors
- @mrdomino made their first contribution in #2080
- @jasonkuster made their first contribution in #2096
- @WojciechMazur made their first contribution in #2105
- @oncilla made their first contribution in #2111
Full Changelog: v0.43.0...v0.44.0
v0.43.0
What's Changed
- Evaluate build tags as both true and false by @patrickmscott in #1938
- fix: correct updated filepath when updating expected output BUILD files by @jbedard in #2025
- Add more k8s.io default overrides by @mering in #2026
- Add build file generation override for cncf/xds by @faximan in #2027
- Sync vendor directory by @jayconrod in #2028
- prometheus: Add directives needed for prometheus and alertmanager by @zecke in #2032
- Stop using Label.workspace_name by @EdSchouten in #2033
- Update docs for Google API name resolution by @neilconway in #2035
- Watch inputs to
go_repositoryby @fmeum in #2037 - perf: do not build trie for directories not being traversed by @jbedard in #2036
- feat: support only updating existing BUILD files by @jbedard in #1921
- feat: add support for bazel8 REPO.bazel ignore_directories by @jbedard in #2039
- Fix a typo in the target name, and use relative target path by @goretkin in #2024
- fix: attr.val is not updated when setting multiple times by @IanDxSSXX in #2046
- walk: add benchmark for Walk by @jayconrod in #2042
- walk: set parallelism to runtime.GOMAXPROCS by @jayconrod in #2047
- refactor: move fs/walk related configuration to walk/config by @jbedard in #2044
- refactor: simplify walkDir signature by @jbedard in #2043
- Add proto override for k8s.io/kubelet to default_gazelle_overrides.bzl by @b-bremer in #2049
- refactor: simplify symlink follow logic by @jbedard in #2054
- fetch_repo: also remove WORKSPACE and MODULE files when cleaning by @pjjw in #1991
- Improve performance of "Evaluate build tags as true and false" feature by @alopezz in #2058
- feat(update-repos): allow users to profile gazelle update-repos by @tyler-french in #2056
- Add proto override for github.com/hashicorp/go-plugin to default_gazelle_overrides.bzl by @uchanchlani in #2062
- Support (and ignore) ‘tool’ directive in go.mod files. by @phst in #2064
- [Feature] Enable support for go.work files in non-root modules by @stefanpenner in #2067
- Improve consistency by prefering bazel_dep over Go by @zecke in #2065
New Contributors
- @patrickmscott made their first contribution in #1938
- @faximan made their first contribution in #2027
- @zecke made their first contribution in #2032
- @neilconway made their first contribution in #2035
- @goretkin made their first contribution in #2024
- @IanDxSSXX made their first contribution in #2046
- @b-bremer made their first contribution in #2049
- @alopezz made their first contribution in #2058
- @uchanchlani made their first contribution in #2062
- @phst made their first contribution in #2064
Full Changelog: v0.42.0...v0.43.0
v0.42.0
What's Changed
- Add naming convention override for github.com/google/go-jsonnet by @mortenmj in #2004
- Add docs for
go_depsextension by @fmeum in #2010 - Get
gazelle_testandgenerationtestto pass with Bzlmod by @fmeum in #2009 - fix: use REPO.bazel and MODULE.bazel when finding repo root by @alexeagle in #2013
- merger: handle ident load by @chasestarr in #2014
- Fix version resolution with bazel_deps and improve warnings by @fmeum in #2015
- fix(cmd/gazelle): small cleanups to fix-update by @tyler-french in #2017
- fix: Relaxing label parsing for Bazel 8 by @darkrift in #2021
New Contributors
- @chasestarr made their first contribution in #2014
- @darkrift made their first contribution in #2021
Full Changelog: v0.41.0...v0.42.0
v0.41.0
What's Changed
- Downgrade and do not automatically update Go deps by @fmeum in #1979
- fix: allow for newlines in expectedExitCode.txt by @mclarke47 in #1987
- Add an
alias_kinddirective to configure wrapper macros by @alex-torok in #1986 - refactor: simplify walk configuration, func signatures by @jbedard in #1932
- [Proto] Make protoFileInfo method public by @ckilian867 in #1998
- Fix go_deps warnings by @fmeum in #2003
- runner: propagate 'testonly' property to sh_binary by @pjjw in #2002
- Fix staleness issues with recent Bazel versions by @fmeum in #2006
- Use apparent repo name in
go mod tidysuggestion by @fmeum in #2007
New Contributors
- @mclarke47 made their first contribution in #1987
- @pjjw made their first contribution in #2002
Full Changelog: v0.40.0...v0.41.0