MODULE.bazel code
bazel_dep(name = "rules_go", version = "0.61.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 = "5f05dbf4a8cfcf91f99139ad0ff2bedb7bc4fcf1b503ebf6fe8dfe7894efd117",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.61.0/rules_go-v0.61.0.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.61.0/rules_go-v0.61.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.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
- chore: update maintainers by @tyler-french in #4552
- Also allow to read the SDK version from
go.workby @rdesgroppes in #4555 - Allow go_binary to override go_library x_defs by @hochhaus in #4562
- go/tools/builders: Pass
CFLAGSto assembly sources compilation by @LINKIWI in #4559 - Handle absolutizing -internal-isystem by @keith in #4563
- gopackagesdriver: log events using slog by @jayconrod in #4566
- fix: cgo: include dynamic library when interface library is set by @thesayyn in #4569
- fix: unstable import sorting for GoTestGenTest by @Direnol in #4570
- nogo: plumb SDK Go version into go/types by @sluongng in #4564
go_bin_runner: connect stdin by @Illedran in #4576- fix: Allow passing pgoprofile via the command line by @luzhanning in #4580
- link: remove -z,now (BIND_NOW) from CC toolchain extldflags by @hunshcn in #4578
- gopackagesdriver: disable path mapping for GoStdlibList action by @juanzolotoochin in #4585
- context: prefer pre-computed CgoContextInfo from go_context_data by @jsharpe in #4591
- bzltestutil: fix re-exec failure on Windows when runfiles path exceeds MAX_PATH by @chouquette in #4586
- go/private: optimize _filter_options to avoid O(n²) scan by @jsharpe in #4590
- Revert "context: prefer pre-computed CgoContextInfo from go_context_data" by @jsharpe in #4592
- gopackagesdriver: fix missing cgo files when RBE is used by @koonpeng in #4589
- gopackagesdriver: ignore bazel analysis errors by @jayconrod in #4567
- perf: Only resolve cc toolchain for rules that will need it by @dzbarsky in #4593
- Fix invalid comparison by @keith in #4598
- Remove cgo_context_data by @dzbarsky in #4599
- Stop including deprecated properties in context by default by @dzbarsky in #4389
- Use rules_cc to load cc symbols by @dzbarsky in #4579
- Consistent auto-registered toolchain path naming by @r0bobo in #4597
- fix: avoid generating -Wl for dynamic libraries with an interface by @thesayyn in #4574
- Add C++ runtime libs to cgo action inputs by @dzbarsky in #4594
- fix: restore internal_archive.direct after cycle-break recompile by @findleyr in #4606
- Allow experimental ability to bootstrap go toolchain from source by @dzbarsky in #4553
- fix/nogo: use resolved Label for GoGenNogo toolchain by @keegancsmith in #4608
- fix: put GoProtocGen in its own exec group by @sitaktif in #4605
- fix(nogo): generate accurate patches by @blampe in #4602
- Set direct nogo attribute to prevent building nogo for the wrong platform when multiple exec platforms are set by @sitaktif in #4611
- fix: produce facts of required analyzers in nogo facts-only mode by @findleyr in #4615
- chore: remove reference to deprecated host mode by @sitaktif in #4614
- Revert "fix: restore internal_archive.direct after cycle-break recompile" by @findleyr in #4617
- Add more flags to cgoAbsEnvFlags by @AustinSchuh in #4619
- Add loongarch64 support by @zhaixiaojuan in #4610
Full Changelog: v0.60.0...v0.61.0
New Contributors
- @rdesgroppes made their first contribution in #4555
- @thesayyn made their first contribution in #4569
- @Direnol made their first contribution in #4570
- @Illedran made their first contribution in #4576
- @hunshcn made their first contribution in #4578
- @juanzolotoochin made their first contribution in #4585
- @jsharpe made their first contribution in #4591
- @chouquette made their first contribution in #4586
- @koonpeng made their first contribution in #4589
- @r0bobo made their first contribution in #4597
- @keegancsmith made their first contribution in #4608
- @sitaktif made their first contribution in #4605
- @blampe made their first contribution in #4602
- @findleyr made their first contribution in #4606
- @zhaixiaojuan made their first contribution in #4610