WORKSPACE
code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.20.2")
What's Changed
- Make the toolchain's
go
binary available as a target by @fmeum in #3429 - add bazel test rule for excluded packages in popular_repos by @uberzzr in #3447
- change build test name from 'need_test' to 'build_only' by @uberzzr in #3449
- fix a grammer issue by @Longchuanzheng in #3451
- go: support "all:" prefix for "go:embed" directives by @malt3 in #3455
- Remove
filter_transition_label
workaround by @fmeum in #3438 - Extract generated code from BUILD.toolchains.bazel into a macro by @fmeum in #3439
- bzlmod: Prohibit undesirable SDK registrations in non-root modules by @fmeum in #3440
- update links to gazelle docs by @garymm in #3464
- bzlmod: Improve SDK registration by @fmeum in #3443
- Expand locations in
x_defs
values by @fmeum in #3473 - Make
//go
usable in scripts run withbazel run
by @fmeum in #3474 - Avoid repository rule restarts in go_sdk by @jfirebaugh in #3478
- bzlmod: Test BCR test module on all platforms by @fmeum in #3479
- Improve error when linkmode requires cgo by @fmeum in #3482
- Rename
error
script ingo_cross_binary
by @fmeum in #3481 - Only infer platforms from crosstool/cpu if at default by @fmeum in #3485
- Add missing darwin CPUs to apple matcher by @keith in #3461
- Canonicalize tags before transitioning by @fmeum in #3484
- Keep build tags that affect the stdlib build by @fmeum in #3488
- Quote
CC
if it contains whitespace by @fmeum in #3491 - Disable cgo by default with unsupported compilers by @fmeum in #3493
- Only install
runtime/cgo
withpure = False
by @fmeum in #3492 - Use
ctx.readdir
instead ofls
for SDK platform detection by @fmeum in #3497
New Contributors
- @uberzzr made their first contribution in #3447
- @Longchuanzheng made their first contribution in #3451
- @malt3 made their first contribution in #3455
- @tyler-french made their first contribution in #3495
Full Changelog: v0.38.0...v0.39.0