Skip to content

Releases: bazel-contrib/bazel-gazelle

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

v0.27.0

14 Sep 19:56
06b821c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.26.0...v0.27.0

v0.26.0

26 Jun 20:22
530a2c7
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.25.0...v0.26.0

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "bazel_gazelle",
    sha256 = "501deb3d5695ab658e82f6f6f549ba681ea3ca2a5fb7911154b5aa45596183fa",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.26.0/bazel-gazelle-v0.26.0.tar.gz",
        "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.26.0/bazel-gazelle-v0.26.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()

v0.25.0

23 Mar 23:00
6473a8b
Compare
Choose a tag to compare

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, unless debug mode is explictly set by @blico in #1205
  • Support canonical_id attribute for go_repository by @kmicklas in #1121

Proto changes

  • Add per-file mode for proto_library generation by @wolfd in #1033

General changes

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()

v0.24.0

11 Oct 21:17
3ea1d64
Compare
Choose a tag to compare

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()

v0.23.0

08 Mar 20:39
e909144
Compare
Choose a tag to compare
v0.23.0 Pre-release
Pre-release

Changes

  • Go
    • CXXFLAGS and CPPFLAGS #cgo directives are separated into cxxopts and cppopts attributes, respectively. Thanks @otan.
    • Dependencies on mapped kinds are now supported. Thanks @robfig.
    • The gazelle rule now supports the update-repos command.
    • The gazelle rule now has a data attribute and expands $(location) within arguments.
    • go_repository's build_naming_convention is now considered when resolving external dependencies. If a repository already has build files, this attribute may be set to indicate which naming convention it follows.
    • embedsrcs attributes are generated for packages that contain //go:embed directives.
  • Protobuf
    • proto_strip_import_prefix may be set in the root build file. Thanks @linzhp.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "bazel_gazelle",
    sha256 = "62ca106be173579c0a167deb23358fdfe71ffa1e4cfdddf5582af26520f1c66f",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
        "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
    ],
)

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()