chore(deps): update dependency io_bazel_rules_go to v0.43.0
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| io_bazel_rules_go | http_archive | minor | v0.39.1 -> v0.43.0 |
[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
bazelbuild/rules_go (io_bazel_rules_go)
v0.43.0
Breaking x/tools upgrade
This change includes a breaking upgrade to golang.org/x/tools
Please make sure to upgrade x/tools to version v0.15.0 to ensure compatibility with rules_go's NoGo.
If you need to use an older version of x/tools (v0.13.0 or earlier), apply the following patch to rules_go:
x-tools.patch
What's Changed
- Test BCR test module on macos_arm64 by @fmeum in https://github.com/bazelbuild/rules_go/pull/3715
- update documentation for
0.42.0release by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3716 - add netrc support to go_download_sdk by @justinwon777 in https://github.com/bazelbuild/rules_go/pull/3718
- Temporarily disable Bzlmod explicitly by @fmeum in https://github.com/bazelbuild/rules_go/pull/3720
- Fix urls used to get auth in go_download_sdk by @justinwon777 in https://github.com/bazelbuild/rules_go/pull/3724
- Include
go.envin//gorunfiles by @fmeum in https://github.com/bazelbuild/rules_go/pull/3722 - Update arm platform constraint to latest value in bazel. by @BryanDClark in https://github.com/bazelbuild/rules_go/pull/3734
- Add toolchain param to affected actions by @kotlaja in https://github.com/bazelbuild/rules_go/pull/3740
- upgrade tools by @hawkingrei in https://github.com/bazelbuild/rules_go/pull/3730
- Also take library deps like srcs into account in go context by @mering in https://github.com/bazelbuild/rules_go/pull/3725
- Add go_cross_binary to README by @jfirebaugh in https://github.com/bazelbuild/rules_go/pull/3744
- Update
bazel_featuresto v1.1.1 by @fmeum in https://github.com/bazelbuild/rules_go/pull/3747 - builder: Make paths absolute for stdliblist (#1357) by @zecke in https://github.com/bazelbuild/rules_go/pull/3748
- feat(gopackagesdriver): add base test case for go packages driver by @JamyDev in https://github.com/bazelbuild/rules_go/pull/3743
- Fix bazel query scope not being used by @rastenis in https://github.com/bazelbuild/rules_go/pull/3688
- Add support for
xtestpackages in Go Packages Driver by @JamyDev in https://github.com/bazelbuild/rules_go/pull/3750 - upgrade x/tools to 0.15.0 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3751
- bug fix: parse embeds in files that contain the double quote rune by @andyscott in https://github.com/bazelbuild/rules_go/pull/3672
- prepare release 0.43.0 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3745
New Contributors
- @justinwon777 made their first contribution in https://github.com/bazelbuild/rules_go/pull/3718
- @BryanDClark made their first contribution in https://github.com/bazelbuild/rules_go/pull/3734
- @kotlaja made their first contribution in https://github.com/bazelbuild/rules_go/pull/3740
- @rastenis made their first contribution in https://github.com/bazelbuild/rules_go/pull/3688
- @andyscott made their first contribution in https://github.com/bazelbuild/rules_go/pull/3672
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.42.0...v0.43.0
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:
-
d1da1bbInfer importpath if not set explicitly by @mering (#3705) -
7309abaMarkgo_sdkmodule extension as{os,arch}_dependentby @fmeum (#3703) -
09a206cSymlink all SDK files withgo_local_sdkby @fmeum (#3696) -
9ebc93c[go_sdk download] allow patches to standard library by @tyler-french (#3684) -
f03a723bzltestutil: move os.Chdir call into new package by @jayconrod (#3681) -
a8cb4b7bzltestutil: set importmap to fix run_dir by @jayconrod (#3679) -
85f2440Fix: update gomock.bzl by poping incompatible argument by @yongruilin (#3674) -
5206498use carved out module for x/tools/go/vcs by @malt3 (#3671) -
2e821f6cgo packages with assembly: Support CGO_ENABLED=0 by @evanj (#3661) -
f64211abzlmod: Add missing experiments and strip_prefix arguments by @fmeum (#3443) (#3663) -
0da92cdgo_context: set GOTOOLCHAIN to 'local' by @sluongng (#3660) -
edf5b64compilepkg: cgo assembly uses the C compiler by @evanj (#3648) -
6e10f8cgo/tools/gopackagesdriver: pass Compiler and Arch in DriverResponse by @matloob (#3657) -
f5ae196[proto] Allow multiple outputs from a proto compiler by @tingilee (#3650) -
57ef719Add pgo support for go 1.20 by @prestonvanloon (#3641) -
ce32021Migrateexec_toolstotoolsongenruleby @fmeum (#3638) -
98165a6Honor//go/config:linkmodeforgo_testby @fmeum (#3629) -
61c1e91Fix//go/config:linkmodeflag value not being effective by @fmeum (#3627) -
b0a9851Remove deprecated rules by @sluongng (#3538) -
d2a3cf2Fix compilation_outputs_test on Windows with latest Bazel by @fmeum (#3623)
Full Changelog: https://github.com/bazelbuild/rules_go/compare/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")
v0.41.0
What's Changed
Starting this release, rules_go no longer ship with @go_googleapis repo. Together with Gazelle v0.32.0, it means that all Go code importing generated code from Google APIs will depend on @org_golang_google_genproto, which is resolved by Go modules. For proto files importing Google APIs proto and generating Go code, users need to:
- Add an
http_archiverule to download Google APIs, e.g.,
http_archive(
name = "googleapis",
sha256 = "9d1a930e767c93c825398b8f8692eca3fe353b9aaadedfbcf1fca2282c85df88",
strip_prefix = "googleapis-64926d52febbf298cb82a8f472ade4a3969ba922",
urls = [
"https://github.com/googleapis/googleapis/archive/64926d52febbf298cb82a8f472ade4a3969ba922.zip",
],
)
load("@​googleapis//:repository_rules.bzl", "switched_rules_by_language")
switched_rules_by_language(
name = "com_google_googleapis_imports",
)
Note that the version of Google APIs archive needs to be compatible with the pre-generated code in @org_golang_google_genproto.
- Resolve the proto manually. If Gazelle is being used, directives like the following need to be added to a parent directory of the proto files:
### gazelle:resolve proto proto google/rpc/status.proto @​googleapis//google/rpc:status_proto
### gazelle:resolve proto go google/rpc/status.proto @​org_golang_google_genproto//googleapis/rpc/status
### gazelle:resolve proto google/longrunning/operations.proto @​googleapis//google/longrunning:operations_proto
### gazelle:resolve proto go google/longrunning/operations.proto @​org_golang_google_genproto//googleapis/longrunning
Other changes included in this release
- detect_sdk_version: Support 1.21's new VERSION file format by @evanj in https://github.com/bazelbuild/rules_go/pull/3600
- stdlib: Do not pass -static to cgo by @zecke in https://github.com/bazelbuild/rules_go/pull/3593
- Expand stdlib packages when queried by @JamyDev in https://github.com/bazelbuild/rules_go/pull/3606
- Fix stdlib file outputs pointing to processwrapper by @JamyDev in https://github.com/bazelbuild/rules_go/pull/3608
- Fix
go_sdkextension failure for unnamed root module by @fmeum in https://github.com/bazelbuild/rules_go/pull/3612 - Adding Uber's hermetic cc toolchain for tests by @linzhp in https://github.com/bazelbuild/rules_go/pull/3609
- Implement functionality to skip tests via TESTBRIDGE_TEST_ONLY env by @yushan26 in https://github.com/bazelbuild/rules_go/pull/3618
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.40.1...v0.41.0
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.20.5")
v0.40.1
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.20.5")
Changes
This patch release cherry-picked two bug fixes related to Go package driver from master
v0.40.0
What's Changed
- Revert "Add automatic platform detection from inbound crosstool_top a… by @fmeum in https://github.com/bazelbuild/rules_go/pull/3468
- bzlmod: Add dedicated documentation by @fmeum in https://github.com/bazelbuild/rules_go/pull/3519
- Create TEST_SHARD_STATUS_FILE when sharding tests by @fmeum in https://github.com/bazelbuild/rules_go/pull/3547
- Move CI flags to .bazelrc and fix BwoB build by @fmeum in https://github.com/bazelbuild/rules_go/pull/3551
- Re-enable go_path_test on RBE by @sluongng in https://github.com/bazelbuild/rules_go/pull/3539
- nogo: provide usage doc by @sluongng in https://github.com/bazelbuild/rules_go/pull/3534
- respect global strip config by @malt3 in https://github.com/bazelbuild/rules_go/pull/3527
- stdliblist: return generated files by @grampelberg in https://github.com/bazelbuild/rules_go/pull/3552
- Fix formatting in nogo usage doc by @sluongng in https://github.com/bazelbuild/rules_go/pull/3557
- Fix
goexperiment.*build tags by @lbcjbb in https://github.com/bazelbuild/rules_go/pull/3556 - Remove tests for
go_path'slinkmode by @fmeum in https://github.com/bazelbuild/rules_go/pull/3565 - Fix tests with
--incompatible_disable_starlark_host_transitionsby @fmeum in https://github.com/bazelbuild/rules_go/pull/3560 - Create empty
.gofile in a random location by @fmeum in https://github.com/bazelbuild/rules_go/pull/3566 - gopackagesdriver: fix interface to work with golangci-lint (#3523) by @grampelberg in https://github.com/bazelbuild/rules_go/pull/3524
- Fix typo in load statement for bzlmod docs by @Sovietaced in https://github.com/bazelbuild/rules_go/pull/3570
- context: remove unused import by @sluongng in https://github.com/bazelbuild/rules_go/pull/3571
- docs: Mention
use_repoautomation by @fmeum in https://github.com/bazelbuild/rules_go/pull/3573 - Test basic-gazelle example with incompatible flags by @fmeum in https://github.com/bazelbuild/rules_go/pull/3575
- go_sdk extension: create
go_host_compatible_sdkrepository by @ylecornec in https://github.com/bazelbuild/rules_go/pull/3543 - docs: Mention that
gazelle:prefixcan be replaced bygo.modby @fmeum in https://github.com/bazelbuild/rules_go/pull/3577 - go_download_sdk: apply extraction workaround to zips on non-windows OSs by @jayconrod in https://github.com/bazelbuild/rules_go/pull/3563
- Fix
go_download_sdkwith Bazel dev versions by @fmeum in https://github.com/bazelbuild/rules_go/pull/3580 - Implement //nolint parsing similar to golangci-lint by @patrickmscott in https://github.com/bazelbuild/rules_go/pull/3562
New Contributors
- @bricedp made their first contribution in https://github.com/bazelbuild/rules_go/pull/3512
- @patrickmscott made their first contribution in https://github.com/bazelbuild/rules_go/pull/3528
- @grampelberg made their first contribution in https://github.com/bazelbuild/rules_go/pull/3552
- @Sovietaced made their first contribution in https://github.com/bazelbuild/rules_go/pull/3570
- @ylecornec made their first contribution in https://github.com/bazelbuild/rules_go/pull/3543
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.39.1...v0.40.0
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "bfc5ce70b9d1634ae54f4e7b495657a18a04e0d596785f672d35d5f505ab491a",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.0/rules_go-v0.40.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.40.0/rules_go-v0.40.0.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.20.5")
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot.
This currently fails for the nixpkgs builds with:
panic: rulesGoStdlibPrefix should have been set via -X
This was fixed upstream in https://github.com/tweag/rules_nixpkgs/pull/422