github bazel-contrib/rules_go v0.58.1

latest release: v0.58.2
20 hours ago

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "bc1f6c81e75b1785a7d7d71ae99a8e8de7360f05cd755ba2e975c937469bfa39",
    urls = [
        "https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.58.1/rules_go-v0.58.1.zip",
        "https://github.com/bazel-contrib/rules_go/releases/download/v0.58.1/rules_go-v0.58.1.zip",
    ],
)

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

go_rules_dependencies()

go_register_toolchains(version = "1.25.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

  • Sync nogo vets with new ones added up to Go 1.22 by @TvdW in #4431
  • Revert "go_sdk: store SDK filenames and hashes in lockfile facts" by @fmeum in #4432
  • Revert back from attribute to rule transitions by @fmeum in #4415
  • Fix trim path problems by @jscissr in #4435
  • Include blackbox tests in compilation_outputs group by @be9 in #4437
  • Resolve Go and C++ toolchains for each Go target by @fmeum in #4439
  • Revert unnecessary test change by @fmeum in #4442
  • Cleanup path-mapping enablement by @dzbarsky in #4441
  • Issue 1486: cgo: fix C++ dynamic initialization of static variables when using alwayslink = True by @enscogitans in #4438
  • Update bazel_dep versions in bzlmod.md by @orf in #4445
  • Fix Stardoc in repos which use rules_go with Bazel 8+ by @tetromino in #4446
  • Add --warning-suppression-mappings to cgoAbsEnvFlags by @armandomontanez in #4448
  • fix(contributing): Fix readme reference by @blazingbbq in #4450
  • Run gofmt on runfiles code by @phst in #4452
  • Minor formatting improvements for docstrings by @phst in #4453
  • Formatting improvements for docstrings in the bazel package by @phst in #4455
  • Remove spurious second-level heading by @phst in #4456
  • Exclude jsontest package from stdlib builder by @dzbarsky in #4457
  • Add provides GoInfo to source and library rules by @fionera in #4458
  • Allow environment variables to override go_env in @rules_go//go by @rafikk in #4464
  • A bit of starlark micro-optimization by @dzbarsky in #4468
  • Fix build failures on latest macOS by @fmeum in #4472
  • Cover all cases for rpath generation by @fmeum in #4471
  • Allow collecting coverage for go_binary executed as child process by @dzbarsky in #4461
  • use sh_toolchain to get a truer path to bash by @TroyKomodo in #4465
  • Commit MODULE.bazel.lock files by @jayconrod in #4484
  • Fix pure mode detection by @fmeum in #4470

New Contributors

Full Changelog: v0.57.0...v0.58.1

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.