Bot releases are hidden (Show)
include()
in MODULE.bazel
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1810
//internal:bazel_test
on Mac to fix CI by @tyler-french in https://github.com/bazelbuild/bazel-gazelle/pull/1842
gazelle:resolve_regexp
by @lkassar-stripe in https://github.com/bazelbuild/bazel-gazelle/pull/1822
external/...
prefix to ${SRCDIR}
in external repos by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1850
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.37.0...v0.38.0
Published by tyler-french 5 months ago
debug_mode
option to go_deps
by @davidbyttow in https://github.com/bazelbuild/bazel-gazelle/pull/1806
# gazelle:proto file
work without needing to set different option go_package
in .proto files by @jeromep-stripe in https://github.com/bazelbuild/bazel-gazelle/pull/1765
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.36.0...v0.37.0
Published by tyler-french 7 months ago
update-repos
to omit reading WORKSPACE
on bzlmod only repos. by @Megakuul in https://github.com/bazelbuild/bazel-gazelle/pull/1727
default_gazelle_attributes
for go_deps
extension by @tyler-french in https://github.com/bazelbuild/bazel-gazelle/pull/1716
go_deps.config(env = ...)
as a replacement for gazelle_dependencies(go_env = ...)
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1748
go_deps
extension as reproducible by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1761
purego
build constraint by @mattyclarkson in https://github.com/bazelbuild/bazel-gazelle/pull/1767
go.mod
to rules_go by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1762
reproducible
usage in extensions by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1763
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.35.0...v0.36.0
Published by tyler-french 10 months ago
gazelle_generation_test
use of arguments.txt
by @vpanta in https://github.com/bazelbuild/bazel-gazelle/pull/1660
archive_override
s by @tyler-french in https://github.com/bazelbuild/bazel-gazelle/pull/1665
allow_empty = True
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1674
pprof
by @tyler-french in https://github.com/bazelbuild/bazel-gazelle/pull/1685
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.34.0...v0.35.0
Published by tyler-french 12 months ago
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.33.0...v0.34.0
Published by fmeum about 1 year ago
# gazelle:follow
accept a glob by @shahms in https://github.com/bazelbuild/bazel-gazelle/pull/1596
go_deps
usages by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1584
WORKSPACE
file when running update-repos
when bzlmod is enabled by @cgrindel in https://github.com/bazelbuild/bazel-gazelle/pull/1589
go_deps.from_file
compatible with Go 1.21 by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1605
golang.org/x/mod
Vendor to Support Go 1.21 by @alan910127 in https://github.com/bazelbuild/bazel-gazelle/pull/1611
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.32.0...v0.33.0
Published by linzhp over 1 year ago
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:
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
.
# 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
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.31.1...v0.32.0
Published by linzhp over 1 year ago
go_deps.module
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1548
bazel_dep
s replace Go deps by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1526
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.31.0...v0.31.1
Published by linzhp over 1 year ago
module_override
tag to allow patching in go_deps by @tyler-french in https://github.com/bazelbuild/bazel-gazelle/pull/1500
build_proto_file_mode
in message by @tyler-french in https://github.com/bazelbuild/bazel-gazelle/pull/1504
unix
build tag. by @connyay in https://github.com/bazelbuild/bazel-gazelle/pull/1512
build_file_generation
to gazelle_override
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1522
struct
by @birunts in https://github.com/bazelbuild/bazel-gazelle/pull/1524
extension_metadata
to automate use_repo
fixes by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1511
go:embed
failing to add embedsrcs
for subdirectories named build by @sgavinio in https://github.com/bazelbuild/bazel-gazelle/pull/1539
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.30.0...v0.31.0
Published by linzhp over 1 year ago
bzl_test
by @cgrindel in https://github.com/bazelbuild/bazel-gazelle/pull/1413
go mod download
output expectation for errors by @illicitonion in https://github.com/bazelbuild/bazel-gazelle/pull/1442
short_path
for go
in the wrapper by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1446
.ijwb
to .gitignore
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1478
.ijwb
from repository tools srcs by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1490
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.29.0...v0.30.0
Published by linzhp almost 2 years ago
strip_prefix
field to source.template.json
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1375
gazelle_generation_test
by @cgrindel in https://github.com/bazelbuild/bazel-gazelle/pull/1377
gazelle_generation_test
by @cgrindel in https://github.com/bazelbuild/bazel-gazelle/pull/1383
cfg = "host"
with cfg = "exec"
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1395
patch
from @bazel_tools//tools/build_defs/repo
by @tyler-french in https://github.com/bazelbuild/bazel-gazelle/pull/1381
--incompatible_disallow_empty_glob
by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1405
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.28.0...v0.29.0
Published by linzhp almost 2 years ago
visibility
attribute for gazelle
macro to resulting sh_binary
by @cgrindel in https://github.com/bazelbuild/bazel-gazelle/pull/1340
go_proto_library
compilers by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1348
gazelle_generation_test
respect out suffix when generating golden files by @blorente in https://github.com/bazelbuild/bazel-gazelle/pull/1352
gazelle_generation_test
by @charlesoconor in https://github.com/bazelbuild/bazel-gazelle/pull/1351
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.27.0...v0.28.0
Published by linzhp about 2 years ago
go list -m -json
errors correctly by @fmeum in https://github.com/bazelbuild/bazel-gazelle/pull/1301
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.26.0...v0.27.0
Published by linzhp over 2 years ago
patch
from @bazel_tools//tools/build_defs/repo:utils.bzl
by @bozaro in https://github.com/bazelbuild/bazel-gazelle/pull/1269
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.25.0...v0.26.0
WORKSPACE
codeload("@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()
Published by blico over 2 years ago
go_repository
rules now default to this mode, showing significant performance improvements for some repo rules by @blico in https://github.com/bazelbuild/bazel-gazelle/pull/1201
go_repository
rules no longer log Gazelle warnings, unless debug
mode is explictly set by @blico in https://github.com/bazelbuild/bazel-gazelle/pull/1205
canonical_id
attribute for go_repository
by @kmicklas in https://github.com/bazelbuild/bazel-gazelle/pull/1121
proto_library
generation by @wolfd in https://github.com/bazelbuild/bazel-gazelle/pull/1033
rule.AddAlias
func to support loading aliased symbols by @dorfire in https://github.com/bazelbuild/bazel-gazelle/pull/1127
FixLoad
now generates load
statements for helper functions by @illicitonion in https://github.com/bazelbuild/bazel-gazelle/pull/1164
Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.24.0...v0.25.0
WORKSPACE
codeload("@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()
Published by robfig about 3 years ago
This release requires rules_go 0.29 to support the retirement of go_tool_library
.
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.
go_repository
rules (#1090)Full Changelog: https://github.com/bazelbuild/bazel-gazelle/compare/v0.23.0...v0.24.0
WORKSPACE
codeload("@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()
Published by jayconrod over 3 years ago
CXXFLAGS
and CPPFLAGS
#cgo
directives are separated into cxxopts
and cppopts
attributes, respectively. Thanks @otan.gazelle
rule now supports the update-repos
command.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.proto_strip_import_prefix
may be set in the root build file. Thanks @linzhp.WORKSPACE
codeload("@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()
Published by jayconrod almost 4 years ago
-mode=diff
treats empty build files correctly. (thanks @vpanta)http_archive(
name = "bazel_gazelle",
sha256 = "222e49f034ca7a1d1231422cdb67066b885819885c356673cb1f72f748a3c9d4",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.3/bazel-gazelle-v0.22.3.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.3/bazel-gazelle-v0.22.3.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
Published by jayconrod about 4 years ago
go_rule
function from rules_go, which will be removed in 0.25. This should improve compatibility with future versions.http_archive(
name = "bazel_gazelle",
sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
Published by jayconrod about 4 years ago
WORKSPACE
if the repository io_bazel_rules_go
hasn't been fetched yet.gazelle_binary
rule should now work correctly with previous versions of rules_go.import
and import_alias
naming conventions, dots will be replaced with underscores in generated test names. This avoids generating targets that have the same names as source files.update-repos -from_file=go.mod
should no longer fail mysteriously when go.mod
has a replace
directive that uses a relative path. Local replacements are still not supported though. (thanks @dragonsinth)http_archive(
name = "bazel_gazelle",
sha256 = "72d339ff874a382f819aaea80669be049069f502d6c726a07759fdca99653c48",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.1/bazel-gazelle-v0.22.1.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.1/bazel-gazelle-v0.22.1.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()