Skip to content

Releases: bazelbuild/bazel-gazelle

v0.36.0

03 Apr 15:40
1b331b6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.35.0...v0.36.0

v0.35.0

21 Dec 18:18
f5a5c5d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.34.0...v0.35.0

v0.34.0

08 Nov 15:00
f4b1e77
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.33.0...v0.34.0

v0.33.0

06 Sep 14:52
061cc37
Compare
Choose a tag to compare

What's Changed

  • Generate BUILD files for grpc-gateway by default by @seh in #1578
  • Remove temporary workaround after rules_go 0.41.0 release by @fmeum in #1577
  • bzlmod: Use first host-compatible SDK to bootstrap Gazelle by @fmeum in #1581
  • Update: golang.org/x/exp & golang.org/x/oauth2 deps. by @sfc-gh-ptabor in #1582
  • [README.rst] Mention kotlin PoC by @kolloch in #1590
  • Fix and let # gazelle:follow accept a glob by @shahms in #1596
  • Add support for isolated go_deps usages by @fmeum in #1584
  • feat(bzlmod): support archive_override in go_deps by @tyler-french in #1559
  • fix: avoid updating WORKSPACE file when running update-repos when bzlmod is enabled by @cgrindel in #1589
  • Make go_deps.from_file compatible with Go 1.21 by @fmeum in #1605
  • go_repository: fix missing default GOPROXY by @sluongng in #1602
  • fix: patch support for dir named workspace by @michaellzc in #1606
  • Revert "go_repository: fix missing default GOPROXY (#1602)" by @sluongng in #1609
  • Upgrade golang.org/x/mod Vendor to Support Go 1.21 by @alan910127 in #1611
  • fix: go_repository: never shadow a module with a compatibility mapping for major versions. by @reltuk in #1608
  • bug fix: don't generate invalid go_binary rules for empty main packages by @andyscott in #1618
  • Fix wrong Kotlin Support link in README. by @duckladydinh in #1619
  • bzlmod: Verify that the lockfile is platform-independent by @fmeum in #1617
  • Add gazelle_rust under supported languages by @Calsign in #1620
  • replace golang.org/x/tools with golang.org/x/tools/go/vcs@v0.1.0-deprecated by @malt3 in #1603
  • Implement Merger interface by @Whoaa512 in #1569
  • Improve Gazelle launcher's runfiles discovery on Windows by @fmeum in #1604
  • Add an entry for "github.com/googleapis/gax-go/v2" to default_gazelle_overrides.bzl by @andrewmbenton in #1623
  • add a go_test directive to enable generating go_test targets per _test.go file by @shahms in #1597
  • Detect whether Gazelle itself is a Bazel module by @fmeum in #1624
  • prepare release 0.33 by @tyler-french in #1615

New Contributors

Full Changelog: v0.32.0...v0.33.0

v0.32.0

11 Jul 15:56
154fb90
Compare
Choose a tag to compare

Starting this release, Gazelle no longer resolves Go and proto imports of Google APIs to @go_googleapis. Instead, Go packages from Google APIs will be treated as regular Go packages, and resolve to @org_golang_google_genproto, which contains the pre-generated Go code, with its version determined by Go modules. For proto files importing Google APIs proto and generating Go code, users need to:

  1. Add an http_archive rule to download Google APIs, e.g.,
http_archive(
    name = "googleapis",
    sha256 = "9d1a930e767c93c825398b8f8692eca3fe353b9aaadedfbcf1fca2282c85df88",
    strip_prefix = "googleapis-64926d52febbf298cb82a8f472ade4a3969ba922",
    urls = [
        "https://github.com/googleapis/googleapis/archive/64926d52febbf298cb82a8f472ade4a3969ba922.zip",
    ],
)

load("@googleapis//:repository_rules.bzl", "switched_rules_by_language")

switched_rules_by_language(
    name = "com_google_googleapis_imports",
)

Note that the version of Google APIs archive needs to be compatible with the pre-generated code in @org_golang_google_genproto.

  1. Resolve the proto manually. If Gazelle is being used, directives like the following need to be added to a parent directory of the proto files:
# gazelle:resolve proto proto google/rpc/status.proto @googleapis//google/rpc:status_proto
# gazelle:resolve proto go google/rpc/status.proto  @org_golang_google_genproto//googleapis/rpc/status
# gazelle:resolve proto google/longrunning/operations.proto @googleapis//google/longrunning:operations_proto
# gazelle:resolve proto go google/longrunning/operations.proto @org_golang_google_genproto//googleapis/longrunning

What's Changed

New Contributors

Full Changelog: v0.31.1...v0.32.0

v0.31.1

13 Jun 03:08
7feffe1
Compare
Choose a tag to compare

What's Changed

  • point sync.Once in walkConfig by @jmhodges in #1532
  • add copylock vet to nogo by @jmhodges in #1534
  • bzlmod: Remove deprecated override attributes on go_deps.module by @fmeum in #1548
  • Add default directives for github.com/envoyproxy/protoc-gen-validate by @mortenmj in #1553
  • cmd/gazelle: do not use the epoch as timestamp in diff output by @siddharthab in #1552
  • fileinfo: fix not detecting 'unix' files to be OS specific by @sluongng in #1554
  • language/go: Emit apparent repo name of rules_go in select keys by @fmeum in #1555
  • Let bazel_deps replace Go deps by @fmeum in #1526

New Contributors

Full Changelog: v0.31.0...v0.31.1

v0.31.0

27 May 18:30
e0911e8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.30.0...v0.31.0

v0.30.0

30 Mar 21:36
4dfcb75
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.29.0...v0.30.0

v0.29.0

14 Jan 17:40
7b7d98b
Compare
Choose a tag to compare

What's Changed

  • bzlmod: Update Publish to BCR app config by @fmeum in #1363
  • Fix: Skip default_visibility extension logic if no BUILD.bazel file present by @dnathe4th in #1364
  • fix updateStmt makeslice panic by @pcj in #1371
  • bzlmod: Add missing strip_prefix field to source.template.json by @fmeum in #1375
  • feat: support common test args in gazelle_generation_test by @cgrindel in #1377
  • Make the new facts pacakge public by @linzhp in #1378
  • fix: add timeout message for gazelle_generation_test by @cgrindel in #1383
  • bzlmod: Add missing repository metadata by @fmeum in #1387
  • Replace cfg = "host" with cfg = "exec" by @fmeum in #1395
  • upgrade rules_go to 0.37.0 by @JamyDev in #1386
  • Fix embed on windows by @st3veV in #1361
  • Update bazel-skylib to 1.3.0. by @benjaminp in #1367
  • Fix Directives anchor by @jmthvt in #1353
  • Use patch from @bazel_tools//tools/build_defs/repo by @tyler-french in #1381
  • Add link to BenchSci's rules_nodejs_gazelle extension by @ColinHeathman in #1369
  • bzlmod: Skip Go modules available as Bazel modules by @fmeum in #1403
  • repo: opportunistically populate RemoteCache from go.mod by @jayconrod in #1396
  • Fix Gazelle with --incompatible_disallow_empty_glob by @fmeum in #1405
  • chore: remove experimental warning from bzlmod module by @alexeagle in #1406
  • chore: add Swift extension to language list by @cgrindel in #1412
  • Update everything for release prep, add releaser tool by @dnathe4th in #1373
  • adding go version and std_package_list to releaser by @linzhp in #1415

New Contributors

Full Changelog: v0.28.0...v0.29.0

v0.28.0

26 Oct 21:32
0e33093
Compare
Choose a tag to compare

What's Changed

  • language/proto: gen_known_imports creates structs instead of function calls by @eric-skydio in #1333
  • Add DoneGeneratingRules language hook by @illicitonion in #1325
  • Allow configuring timeout of generation tests by @illicitonion in #1324
  • bug: Allow user-specified tags on gazelle rule by @Helcaraxan in #1308
  • Replace _get_auth with Bazel's read_user_netrc by @linzhp in #1338
  • language/go should consider default_visibility set by OtherGen (#783) by @dnathe4th in #1341
  • fix: pass visibility attribute for gazelle macro to resulting sh_binary by @cgrindel in #1340
  • Add additional bzlmod requirements to allow grpc protobufs to work by @shs96c in #1345
  • bzlmod: Simplify go_grpc_library support by @fmeum in #1346
  • bzlmod: Add support for custom go_proto_library compilers by @fmeum in #1348
  • Add visibility extension to support recursive default_visibility (#783) by @dnathe4th in #1343
  • Make gazelle_generation_test respect out suffix when generating golden files by @blorente in #1352
  • Add size argument to gazelle_generation_test by @charlesoconor in #1351

New Contributors

Full Changelog: v0.27.0...v0.28.0