v0.42.0
What's Changed
Added patches
to go_download_sdk
:
Patches can now be applied to the standard library using go_download_sdk
(and go_sdk.download
for Bzlmod).
Example:
go_download_sdk(
name = "go_sdk",
sdks = {
"linux_amd64": (
"go{}.linux-amd64.mirror6598503.tar.gz".format(go_version),
"3f5c50e592d8845d30eebd08ddb9c670fd2d909e032b6c2b83ecf97afb34660c",
),
"darwin_arm64": (
"go{}.darwin-arm64.mirror6598503.tar.gz".format(go_version),
"fbe78beee7861da09de9319498a1521bc41a8b79d3ead2218ce307b9fa5503e5",
),
},
patches = [
"//patches:golang_osx_dns_workaround.patch",
],
urls = ["https://dl.google.com/go/{}"],
version = go_version,
)
Other changes included:
- d1da1bb Infer importpath if not set explicitly by @mering (#3705)
- 7309aba Mark
go_sdk
module extension as{os,arch}_dependent
by @fmeum (#3703) - 09a206c Symlink all SDK files with
go_local_sdk
by @fmeum (#3696) - 9ebc93c [go_sdk download] allow patches to standard library by @tyler-french (#3684)
- f03a723 bzltestutil: move os.Chdir call into new package by @jayconrod (#3681)
- a8cb4b7 bzltestutil: set importmap to fix run_dir by @jayconrod (#3679)
- 85f2440 Fix: update gomock.bzl by poping incompatible argument by @yongruilin (#3674)
- 5206498 use carved out module for x/tools/go/vcs by @malt3 (#3671)
- 2e821f6 cgo packages with assembly: Support CGO_ENABLED=0 by @evanj (#3661)
- f64211a bzlmod: Add missing experiments and strip_prefix arguments by @fmeum (#3443) (#3663)
- 0da92cd go_context: set GOTOOLCHAIN to 'local' by @sluongng (#3660)
- edf5b64 compilepkg: cgo assembly uses the C compiler by @evanj (#3648)
- 6e10f8c go/tools/gopackagesdriver: pass Compiler and Arch in DriverResponse by @matloob (#3657)
- f5ae196 [proto] Allow multiple outputs from a proto compiler by @tingilee (#3650)
- 57ef719 Add pgo support for go 1.20 by @prestonvanloon (#3641)
- ce32021 Migrate
exec_tools
totools
ongenrule
by @fmeum (#3638) - 98165a6 Honor
//go/config:linkmode
forgo_test
by @fmeum (#3629) - 61c1e91 Fix
//go/config:linkmode
flag value not being effective by @fmeum (#3627) - b0a9851 Remove deprecated rules by @sluongng (#3538)
- d2a3cf2 Fix compilation_outputs_test on Windows with latest Bazel by @fmeum (#3623)
Full Changelog: v0.41.0...v0.42.0
WORKSPACE
code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.21.1")