MODULE.bazel code
bazel_dep(name = "rules_go", version = "0.63.0")
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.from_file(go_mod = "//:go.mod")
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "c3e253237109ab2e2a8d3cb075688b98a6e6fce43d849849648e8e3a84f20d6f",
urls = [
"https://github.com/bazel-contrib/rules_go/releases/download/v0.63.0/rules_go-v0.63.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.26.6")
# 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: respect path mapping for custom SDKs by @blampe in #4663
- Simplify the release process by @fmeum in #4661
- go: require Go 1.18 or later by @sluongng in #4666
- Use -ffile-prefix-map for reproducibility by @keith in #4671
- go: restore go_rule for custom Go rules by @dzbarsky in #4672
- Disable path mapping for stdlib actions with cgo by @keith in #4667
- Build Go SDK file attrs in the exec configuration by @fionera in #4650
- go: preserve race mode for go_source rules by @dzbarsky in #4674
- Introduce
["all"]scope for nogo by @fionera in #4678 - go: require Go 1.20 or later by @sluongng in #4675
- ci: test with Bazel 8 and 9 via a matrix by @fmeum in #4670
- Inherit static and pure settings for Go tool binaries by @fmeum in #4689
- link: add external deps to Go build info by @sluongng in #4595
- Treat TestMain as the test entry point only when it takes *testing.M by @H5-O5 in #4679
- link: add package path to build info by @sluongng in #4690
New Contributors
Full Changelog: v0.62.0...v0.63.0