Releases: bazel-contrib/rules_go
Releases · bazel-contrib/rules_go
v0.58.3
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "82f0af253fc61c7f06b005c67c079573776111185b7c3742563f751178aaa4c0",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.58.3/rules_go-v0.58.3.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.58.3/rules_go-v0.58.3.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.25.3")
# Create the host platform repository transitively required by rules_go.
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")
maybe(
host_platform_repo,
name = "host_platform",
)
What's Changed
- Fix _xcode_config attribute for bazel 9.x by @keith in #4491
- Update Bazel to 7.7.0 by @fmeum in #4492
Full Changelog: v0.58.2...v0.58.3
v0.58.2
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "54bbb67a4196170cc60ef3b52a2747ad1759cba4764b4c4752b744080ad99947",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.58.2/rules_go-v0.58.2.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.58.2/rules_go-v0.58.2.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.25.3")
# Create the host platform repository transitively required by rules_go.
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")
maybe(
host_platform_repo,
name = "host_platform",
)
What's Changed
- Add missing
bazel_depto BCR test module by @fmeum in #4486 - tests/bcr: don't require MODULE.bazel.lock by @jayconrod in #4485
- Make it easier to debug integration tests by @dzbarsky in #4488
- Only build cmd/internal/cov package on go1.20 where it exists by @dzbarsky in #4489
- .bazelci/presubmit.yml: run BCR tests with multiple Bazel versions by @jayconrod in #4490
Full Changelog: v0.58.0...v0.58.2
v0.58.1
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "bc1f6c81e75b1785a7d7d71ae99a8e8de7360f05cd755ba2e975c937469bfa39",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.58.1/rules_go-v0.58.1.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.58.1/rules_go-v0.58.1.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.25.3")
# Create the host platform repository transitively required by rules_go.
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")
maybe(
host_platform_repo,
name = "host_platform",
)
What's Changed
- Sync nogo vets with new ones added up to Go 1.22 by @TvdW in #4431
- Revert "go_sdk: store SDK filenames and hashes in lockfile facts" by @fmeum in #4432
- Revert back from attribute to rule transitions by @fmeum in #4415
- Fix trim path problems by @jscissr in #4435
- Include blackbox tests in compilation_outputs group by @be9 in #4437
- Resolve Go and C++ toolchains for each Go target by @fmeum in #4439
- Revert unnecessary test change by @fmeum in #4442
- Cleanup path-mapping enablement by @dzbarsky in #4441
- Issue 1486: cgo: fix C++ dynamic initialization of static variables when using alwayslink = True by @enscogitans in #4438
- Update bazel_dep versions in bzlmod.md by @orf in #4445
- Fix Stardoc in repos which use rules_go with Bazel 8+ by @tetromino in #4446
- Add --warning-suppression-mappings to cgoAbsEnvFlags by @armandomontanez in #4448
- fix(contributing): Fix readme reference by @blazingbbq in #4450
- Run gofmt on runfiles code by @phst in #4452
- Minor formatting improvements for docstrings by @phst in #4453
- Formatting improvements for docstrings in the bazel package by @phst in #4455
- Remove spurious second-level heading by @phst in #4456
- Exclude jsontest package from stdlib builder by @dzbarsky in #4457
- Add provides GoInfo to source and library rules by @fionera in #4458
- Allow environment variables to override
go_envin@rules_go//goby @rafikk in #4464 - A bit of starlark micro-optimization by @dzbarsky in #4468
- Fix build failures on latest macOS by @fmeum in #4472
- Cover all cases for rpath generation by @fmeum in #4471
- Allow collecting coverage for go_binary executed as child process by @dzbarsky in #4461
- use sh_toolchain to get a truer path to bash by @TroyKomodo in #4465
- Commit MODULE.bazel.lock files by @jayconrod in #4484
- Fix pure mode detection by @fmeum in #4470
New Contributors
- @be9 made their first contribution in #4437
- @enscogitans made their first contribution in #4438
- @orf made their first contribution in #4445
- @tetromino made their first contribution in #4446
- @armandomontanez made their first contribution in #4448
- @blazingbbq made their first contribution in #4450
- @fionera made their first contribution in #4458
- @rafikk made their first contribution in #4464
- @TroyKomodo made their first contribution in #4465
Full Changelog: v0.57.0...v0.58.1
v0.58.0
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "bc1f6c81e75b1785a7d7d71ae99a8e8de7360f05cd755ba2e975c937469bfa39",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.58.0/rules_go-v0.58.0.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.58.0/rules_go-v0.58.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.25.3")
# Create the host platform repository transitively required by rules_go.
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")
maybe(
host_platform_repo,
name = "host_platform",
)
What's Changed
- Sync nogo vets with new ones added up to Go 1.22 by @TvdW in #4431
- Revert "go_sdk: store SDK filenames and hashes in lockfile facts" by @fmeum in #4432
- Revert back from attribute to rule transitions by @fmeum in #4415
- Fix trim path problems by @jscissr in #4435
- Include blackbox tests in compilation_outputs group by @be9 in #4437
- Resolve Go and C++ toolchains for each Go target by @fmeum in #4439
- Revert unnecessary test change by @fmeum in #4442
- Cleanup path-mapping enablement by @dzbarsky in #4441
- Issue 1486: cgo: fix C++ dynamic initialization of static variables when using alwayslink = True by @enscogitans in #4438
- Update bazel_dep versions in bzlmod.md by @orf in #4445
- Fix Stardoc in repos which use rules_go with Bazel 8+ by @tetromino in #4446
- Add --warning-suppression-mappings to cgoAbsEnvFlags by @armandomontanez in #4448
- fix(contributing): Fix readme reference by @blazingbbq in #4450
- Run gofmt on runfiles code by @phst in #4452
- Minor formatting improvements for docstrings by @phst in #4453
- Formatting improvements for docstrings in the bazel package by @phst in #4455
- Remove spurious second-level heading by @phst in #4456
- Exclude jsontest package from stdlib builder by @dzbarsky in #4457
- Add provides GoInfo to source and library rules by @fionera in #4458
- Allow environment variables to override
go_envin@rules_go//goby @rafikk in #4464 - A bit of starlark micro-optimization by @dzbarsky in #4468
- Fix build failures on latest macOS by @fmeum in #4472
- Cover all cases for rpath generation by @fmeum in #4471
- Allow collecting coverage for go_binary executed as child process by @dzbarsky in #4461
- use sh_toolchain to get a truer path to bash by @TroyKomodo in #4465
- Commit MODULE.bazel.lock files by @jayconrod in #4484
- Fix pure mode detection by @fmeum in #4470
New Contributors
- @be9 made their first contribution in #4437
- @enscogitans made their first contribution in #4438
- @orf made their first contribution in #4445
- @tetromino made their first contribution in #4446
- @armandomontanez made their first contribution in #4448
- @blazingbbq made their first contribution in #4450
- @fionera made their first contribution in #4458
- @rafikk made their first contribution in #4464
- @TroyKomodo made their first contribution in #4465
Full Changelog: v0.57.0...v0.58.0
v0.57.0
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "a729c8ed2447c90fe140077689079ca0acfb7580ec41637f312d650ce9d93d96",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.57.0/rules_go-v0.57.0.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.57.0/rules_go-v0.57.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.25.0")
# Create the host platform repository transitively required by rules_go.
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")
maybe(
host_platform_repo,
name = "host_platform",
)
What's Changed
- wrap_sdk: make root_files a string_keyed_label_dict by @novas0x2a in #4419
- Fix generation of facts file when diagnostics are ignored by @lbcjbb in #4422
- Fix “deprecated” comments. by @phst in #4423
- Compile
cmd/packfrom source and update to Go 1.25 by @fmeum in #4425 - Find runfiles when a binary is executed from PATH by @fmeum in #4426
New Contributors
- @novas0x2a made their first contribution in #4419
- @lbcjbb made their first contribution in #4422
Full Changelog: v0.56.1...v0.57.0
v0.56.1
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "89d2050410602142c9acafd01c95baf48b65f8dd16f4771d37c89f82f5e147f2",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.56.1/rules_go-v0.56.1.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.56.1/rules_go-v0.56.1.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.24.5")
# Create the host platform repository transitively required by rules_go.
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")
maybe(
host_platform_repo,
name = "host_platform",
)
What's Changed
- fix: instrumentForCoverage for empty outfiles by @bakjos in #4414
- Consider
go_sdk.wrapfor host compatible SDK by @fmeum in #4410 - Drop compatibility with 6.0.0 by @fmeum in #4411
Full Changelog: v0.56.0...v0.56.1
v0.56.0
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "94643c4ce02f3b62f3be7d13d527a5c780a568073b7562606e78399929005f98",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.56.0/rules_go-v0.56.0.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.56.0/rules_go-v0.56.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.24.5")
# Create the host platform repository transitively required by rules_go.
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")
maybe(
host_platform_repo,
name = "host_platform",
)
What's Changed
- Fix breakages with Bazel@HEAD and incompatible flags by @fmeum in #4368
- Provide
DefaultInfoon Go toolchain rules by @fmeum in #4373 - go/tools/gopackagesdriver/pkgjson: Construct pkg json from file input by @r-hang in #4371
- Gracefully handle a panicking analyzer by @fmeum in #4374
- Drop non-hermetic deps in _go_tool_binary_impl by @dzbarsky in #4365
- Don't set module version outside BCR by @fmeum in #4381
- coverage: Don't panic if flag.CommandLine is reassigned by @abhinav in #4384
- chore(go_proto_library): Improve error message on incorrect use. by @mkosiba in #4387
- Cleanup macro wrappers by @dzbarsky in #4388
- Request stdlib cache dir in gopackagesdriver by @jscissr in #4391
- Compute rpath correctly with nested bazel modules by @dgoel in #4390
- Pass large ldflags to cgo via response file instead of env variable. by @dgoel in #4386
- docs: fixup link to bazel-gazelle by @dougthor42 in #4392
- go_sdk: store SDK filenames and hashes in lockfile facts by @fmeum in #4393
- Update rbe worker platform by @meteorcloudy in #4395
- Add support for
--incompatible_compact_repo_mapping_manifestby @fmeum in #4375 - Improve caching for devs and CI via
--incompatible_strict_action_envby @fmeum in #4404 - Skip analyzers that don't emit facts when ignoring diagnostics by @fmeum in #4402
- Allow targets to fully opt out of nogo by @fmeum in #4403
- Support integration test coverage system (coverageredesign) by @r-hang in #4397
New Contributors
- @mkosiba made their first contribution in #4387
- @dgoel made their first contribution in #4390
- @dougthor42 made their first contribution in #4392
Full Changelog: v0.55.0...v0.56.0
v0.55.1
This includes:
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "9d72f7b8904128afb98d46bbef82ad7223ec9ff3718d419afb355fddd9f9484a",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.55.1/rules_go-v0.55.1.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.55.1/rules_go-v0.55.1.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.24.4")
v0.55.0
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "c6cf9da6668ac84c470c43cbfccb8fdc844ead2b5a8b918e2816d44f2986f644",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.55.0/rules_go-v0.55.0.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.55.0/rules_go-v0.55.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.24.3")
What's Changed
- Checking test suite duration by @linzhp in #4323
- Revert "Fail when expected files are not produced by protoc (#4287)" by @linzhp in #4324
- Add imacros to absolutized cgo env list by @LaurenceTews in #4325
- go_cross: allow transition on compilation_mode by @sluongng in #4320
- Pass config to subanalyzers by @grzegorzsn in #4330
- Update BCR presumit matrix by @linzhp in #4331
- Work around incompatibility between zlib and clang 17 by @fmeum in #4332
- Export new location of support files needed for using Go's WASM output. by @malt3 in #4322
- Fix incompatibility with
--incompatible_auto_exec_groupsby @fmeum in #4141 - Re-spawned test binary should not break PWD by @abhinav in #4336
- Only emit patch file if nogo has fixes by @fmeum in #4269
- Rename
outtoout_diagnosticsby @fmeum in #4341 - Remove rules_proto by @comius in #4339
- Remove shadow analyzer from TOOLS_NOGO by @gpanders in #4344
- Disable
pkgfactanalyzer by @fmeum in #4349 - Discourage references to the default SDK by @fmeum in #4351
- go/tools/gopackagesdriver: Adding Cgo support by @r-hang in #4338
- Pass headers along as transitive dependencies by @patrickmscott in #4298
- Allowing a go_proto_compiler to indicate whether it always generate files by @linzhp in #4364
- fix: merge '-Wl,' with next value so extldflags can accept flags like " -Wl,xxxx" by @luzhanning in #4367
New Contributors
- @LaurenceTews made their first contribution in #4325
- @grzegorzsn made their first contribution in #4330
- @comius made their first contribution in #4339
- @gpanders made their first contribution in #4344
- @r-hang made their first contribution in #4338
- @luzhanning made their first contribution in #4367
Full Changelog: v0.54.1...v0.55.0
v0.54.1
This release include two bug fixes:
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "130739704540caa14e77c54810b9f01d6d9ae897d53eedceb40fd6b75efc3c23",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.54.1/rules_go-v0.54.1.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.54.1/rules_go-v0.54.1.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.24.3")
Full Changelog: v0.54.0...v0.54.1