github bazel-contrib/rules_go v0.64.0

3 hours ago

MODULE.bazel code

bazel_dep(name = "rules_go", version = "0.64.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 = "3bf3a9d3a90a10d94e0bebbfe6eabee9fd38cdc72397a7f48fc7059290cc2453",
    urls = [
        "https://github.com/bazel-contrib/rules_go/releases/download/v0.64.0/rules_go-v0.64.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.1")

# 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

  • link: add build settings to build info by @sluongng in #4691
  • Bump default Go SDK to 1.26.7 by @fmeum in #4697
  • link: add main module to build info by @sluongng in #4694
  • link: preserve checksum qualifier from golang PURLs by @rdesgroppes in #4700
  • Preprocess PGO profiles in a separate action by @fmeum in #4684
  • Bump golang.org/x/tools to v0.48.0 for Go 1.27 nogo compatibility by @janantharaj in #4701
  • Add missing bsd platform constraints by @keith in #4703
  • Apply the static attribute at link time instead of via a transition by @fmeum in #4706
  • Reset linkmode to its default value in tool transitions by @fmeum in #4704
  • Reset request_nogo to its default value in the stdlib transition by @fmeum in #4705
  • coverage: emit a real baseline for packages with no tests by @loganrosen in #4669
  • cgo: support compilation_context.external_includes by @faximan in #4710
  • Detect the host platform on DragonFly by @zakinko in #4711
  • link: report only actually-reachable deps in build info by @rdesgroppes in #4709
  • bzltestutil: report testing.Attr attributes as JUnit XML properties by @ketaki-aurora in #4714
  • Also pass GOEXPERIMENT to go_tool_binary actions by @rdesgroppes in #4717
  • Stop silencing error on windows by @keith in #4723
  • Pass -pthread over -mthreads on windows by @keith in #4722
  • Pass new -macos flag by @keith in #4725
  • Set an empty module version for Publish to BCR to replace by @fmeum in #4730
  • Don't run Bazel in the release workflow by @fmeum in #4731

New Contributors

Full Changelog: v0.63.0...v0.64.0

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.