github bazel-contrib/rules_go v0.60.0

10 hours ago

MODULE.bazel code

bazel_dep(name = "rules_go", version = "0.60.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 = "86d3dc8f59d253524f933aaf2f3c05896cb0b605fc35b460c0b4b039996124c6",
    urls = [
        "https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.60.0/rules_go-v0.60.0.zip",
        "https://github.com/bazel-contrib/rules_go/releases/download/v0.60.0/rules_go-v0.60.0.zip",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains(version = "1.25.7")

# 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

  • Document Gazelle go_tools.bzl functionality by @mrdomino in #4496
  • Transition request_nogo to False for cgo_context_data by @cerisier in #4512
  • proto: Pass in the plugin as tools to preserve runfiles by @DolceTriade in #4514
  • Default link mode to PIE on supported platforms by @alextercete in #4481
  • go/tools/gopackagesdriver: don't filter GoFiles for tags by @fionera in #4519
  • Update Coverage link in README.rst by @bluec0re in #4523
  • Exclude cgotest from stdlib build by @dzbarsky in #4524
  • Rename host_go{arch,os} to exec_ by @dzbarsky in #4525
  • Start migrating rules_go workspace to bzlmod by @dzbarsky in #4526
  • refactor: Remove more workspace content by @dzbarsky in #4529
  • refactor: Remove next batch of WORKSPACE content by @dzbarsky in #4531
  • expand make variables in x_defs by @pjjw in #4533
  • Bump golang.org/x/net from 0.34.0 to 0.38.0 in /examples/basic_gazelle by @dependabot[bot] in #4530
  • fix(releaser): add MODULE.bazel boilerplate by @tyler-french in #4225
  • fix(gopackagesdriver): Improve wildcard package query matching by @Aaronkala in #4288
  • Update BCR test module deps and Bazel version by @fmeum in #4537
  • Replace html linebreaks with newlines. by @katre in #4541
  • Replace HTML with Markdown in docs by @katre in #4542
  • chore: Mark go_download_sdk as reproducible by @mortenmj in #4543
  • Revert "Issue 1486: cgo: fix C++ dynamic initialization of static variables when using alwayslink = True (#4438)" by @fmeum in #4551

New Contributors

Full Changelog: v0.59.0...v0.60.0

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.