MODULE.bazel code
bazel_dep(name = "rules_go", version = "0.65.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 = "d4a6e93dc63944172bc3b915a11bfa8d7391c9f1fdc11d7e43724f497617f0e5",
urls = [
"https://github.com/bazel-contrib/rules_go/releases/download/v0.65.0/rules_go-v0.65.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.27.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
- go_path: remove the bin directory from embedsrcs paths as a prefix by @ozenyunus35 in #4748
- go_test: avoid recompiled archive conflicts between test targets by @ozenyunus35 in #4749
- nogo: report crashes instead of a missing .facts output by @ozenyunus35 in #4747
- go_sdk: read go.mod and go.work files by label by @fmeum in #4756
- coverage: skip blocks without statements in LCOV output by @Yannic in #4758
- Reset request_nogo to its default value in go_tool_transition by @kmosher in #4755
- Tag the nogo alias manual like the target behind it by @kmosher in #4759
- Remove the
request_nogosetting by @fmeum in #4761 - upgrade golang.org/x/tools to v0.51.0 by @benjaminp in #4740
- link: derive Go build IDs from the linked binary by @JSGette in #4728
- Keep go_transition's original_* records in go_stdlib_transition by @kmosher in #4763
- Raise minimum Bazel version to 7.7.0 by @fmeum in #4762
- link: stream the binary when setting content build IDs by @JSGette in #4764
New Contributors
- @ozenyunus35 made their first contribution in #4748
- @kmosher made their first contribution in #4755
- @JSGette made their first contribution in #4728
Full Changelog: v0.64.2...v0.65.0