bazel-watcher
bazel-watcher copied to clipboard
fix(deps): update module github.com/bazelbuild/rules_go to v0.50.1
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| github.com/bazelbuild/rules_go | v0.39.0 -> v0.50.1 |
Release Notes
bazelbuild/rules_go (github.com/bazelbuild/rules_go)
v0.50.1
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "f4a9314518ca6acfa16cc4ab43b0b8ce1e4ea64b81c38d8a3772883f153346b8",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.23.0")
Fixes Included:
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.50.0...v0.50.1
v0.50.0
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "67b4d1f517ba73e0a92eb2f57d821f2ddc21f5bc2bd7a231573f11bd8758192e",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.23.0")
What's Changed
- Break reliance on GOROOT_FINAL by @JacobOaks in https://github.com/bazelbuild/rules_go/pull/3984
- Migrate to macos_arm64 by @meteorcloudy in https://github.com/bazelbuild/rules_go/pull/3990
- Support matching release candidate toolchain versions by @JacobOaks in https://github.com/bazelbuild/rules_go/pull/3998
- rm crosstool by @sluongng in https://github.com/bazelbuild/rules_go/pull/3986
- fix(timeout.go): remove redundant leaked go func in RegisterTimeoutHandler by @Roytangrb in https://github.com/bazelbuild/rules_go/pull/4004
- Run nogo in a separate validation action by @fmeum in https://github.com/bazelbuild/rules_go/pull/3995
New Contributors
- @JacobOaks made their first contribution in https://github.com/bazelbuild/rules_go/pull/3984
- @Roytangrb made their first contribution in https://github.com/bazelbuild/rules_go/pull/4004
Full Changelog: https://github.com/bazelbuild/rules_go/compare/release-0.49...release-0.50
v0.49.0
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "d93ef02f1e72c82d8bb3d5169519b36167b33cf68c252525e3b9d3d5dd143de7",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.22.5")
What's Changed
- Add support for path mapping by @fmeum in https://github.com/bazelbuild/rules_go/pull/3915
- Introduce rules_go_unsupported_feature by @cramertj in https://github.com/bazelbuild/rules_go/pull/3955
- Automatically run
bazel mod tidyin@rules_go//goby @fmeum in https://github.com/bazelbuild/rules_go/pull/3927 - Fix revive warning in testmain.go files by @EdSchouten in https://github.com/bazelbuild/rules_go/pull/3958
- Revert "feat(mode): add
puregotag whenpure(#3901)" by @fmeum in https://github.com/bazelbuild/rules_go/pull/3961 - prepare patch release 0.48.1 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3963
- Fix broken link to https://bazel.build/concepts/dependencies#data-dependencies by @alexbozhenko in https://github.com/bazelbuild/rules_go/pull/3960
- docs: Discourage use
go_sdk.host()in bzlmod.md (see #713) by @vorburger in https://github.com/bazelbuild/rules_go/pull/3968 - Add linux/ppc64le to GOARCH constraints by @c16a in https://github.com/bazelbuild/rules_go/pull/3975
- gopackagesdriver: Make kind query regexes anchored by @jscissr in https://github.com/bazelbuild/rules_go/pull/3978
- Add a full
fs.FSimplementation torunfilesby @fmeum in https://github.com/bazelbuild/rules_go/pull/3969 - update readmes for latest release by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3988
- prepare release 0.49.0 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3989
New Contributors
- @cramertj made their first contribution in https://github.com/bazelbuild/rules_go/pull/3955
- @alexbozhenko made their first contribution in https://github.com/bazelbuild/rules_go/pull/3960
- @vorburger made their first contribution in https://github.com/bazelbuild/rules_go/pull/3968
- @c16a made their first contribution in https://github.com/bazelbuild/rules_go/pull/3975
- @jscissr made their first contribution in https://github.com/bazelbuild/rules_go/pull/3978
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.48.0...v0.49.0
v0.48.1
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "b2038e2de2cace18f032249cb4bb0048abf583a36369fa98f687af1b3f880b26",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.48.1/rules_go-v0.48.1.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.48.1/rules_go-v0.48.1.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.22.4")
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.48.0...v0.48.1
v0.48.0
Important Changes!
--incompatible_enable_proto_toolchain_resolution is now supported in rules_go. This means that protoc should now be supplied as a toolchain. protoc can be registered using https://github.com/aspect-build/toolchains_protoc, or a local proto toolchain can be added.
rules_proto 6.0.0 is required to use Go proto rules.
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "33acc4ae0f70502db4b893c9fc1dd7a9bf998c23e7ff2c4517741d4049a976f8",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.48.0/rules_go-v0.48.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.48.0/rules_go-v0.48.0.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.22.3")
What's Changed
- Update docs to cover new FilePath ReplaceDirective Support by @stefanpenner in https://github.com/bazelbuild/rules_go/pull/3931
- go_test: use different mnemonic for compilation by @sluongng in https://github.com/bazelbuild/rules_go/pull/3936
- Add go.work support to the documentation by @stefanpenner in https://github.com/bazelbuild/rules_go/pull/3932
- feat(mode): add
puregotag whenpureby @mattyclarkson in https://github.com/bazelbuild/rules_go/pull/3901 - generate_test_main: Move timeout handling back to bzltestutil by @DolceTriade in https://github.com/bazelbuild/rules_go/pull/3939
- Add support for
--incompatible_enable_proto_toolchain_resolutionby @fmeum in https://github.com/bazelbuild/rules_go/pull/3919 - Add exec_compatible_with to @go_sdk//:builder by @EdSchouten in https://github.com/bazelbuild/rules_go/pull/3943
- prepare v0.48.0 release by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3946
New Contributors
- @stefanpenner made their first contribution in https://github.com/bazelbuild/rules_go/pull/3931
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.47.1...v0.48.0
v0.47.1
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "f74c98d6df55217a36859c74b460e774abc0410a47cc100d822be34d5f990f16",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.47.1/rules_go-v0.47.1.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.47.1/rules_go-v0.47.1.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.22.2")
What's Changed
- bzltestutil: restore timeout signal handler by @sluongng in https://github.com/bazelbuild/rules_go/pull/3929
- feat: support syso files in srcs. by @connyay in https://github.com/bazelbuild/rules_go/pull/3763
- prepare patch release 0.47.1 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3933
New Contributors
- @connyay made their first contribution in https://github.com/bazelbuild/rules_go/pull/3763
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.47.0...v0.47.1
v0.47.0
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "af47f30e9cbd70ae34e49866e201b3f77069abb111183f2c0297e7e74ba6bbc0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.47.0/rules_go-v0.47.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.47.0/rules_go-v0.47.0.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.22.2")
What's Changed
- Add Bazel version matrix to BCR
presubmit.ymlby @fmeum in https://github.com/bazelbuild/rules_go/pull/3861 - Update toolchains_llvm URL and hash by @fmeum in https://github.com/bazelbuild/rules_go/pull/3864
- pass correct (non
"main") importpath to nogo formainpackage by @Strum355 in https://github.com/bazelbuild/rules_go/pull/3863 - Make exec cfg check for
//gostricter by @fmeum in https://github.com/bazelbuild/rules_go/pull/3867 - Fixes the Bazel CI error by @sgowroji in https://github.com/bazelbuild/rules_go/pull/3869
- [go_library] add .x file to declared output files in DefaultInfo by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3866
- Remove Latin-1 workaround on Bazel 6.4.0+ by @mattyclarkson in https://github.com/bazelbuild/rules_go/pull/3872
- fix sdk download for common execution platforms by @scaiper in https://github.com/bazelbuild/rules_go/pull/3874
- Bump Go version to 1.21.8 by @fmeum in https://github.com/bazelbuild/rules_go/pull/3880
- Update README.rst to point to correct GH release tags by @dcarney in https://github.com/bazelbuild/rules_go/pull/3881
- Update bzlmod.md fix typo by @mmrath in https://github.com/bazelbuild/rules_go/pull/3882
- Cleanup temp dirs in GoToolchainBinaryBuild by @hauserx in https://github.com/bazelbuild/rules_go/pull/3885
- gopackagesdriver: move and simplify test by @jayconrod in https://github.com/bazelbuild/rules_go/pull/3856
- Support Go version schema change since 1.21 by @baizhenyu in https://github.com/bazelbuild/rules_go/pull/3891
- gopackagesdriver: fix version check with Bazel development versions by @jayconrod in https://github.com/bazelbuild/rules_go/pull/3893
- Revert "improving logging for subcommand failure (#3824)" by @linzhp in https://github.com/bazelbuild/rules_go/pull/3892
- Replace instances of to_json() method with json.encode(..) by @c-mita in https://github.com/bazelbuild/rules_go/pull/3896
- add nogo parsing support for nogo explanations by @andyscott in https://github.com/bazelbuild/rules_go/pull/3899
- [nogo] match regexp againts relative paths by @scaiper in https://github.com/bazelbuild/rules_go/pull/3898
- Add
bazel_featurestransitive.bzls tobzl_librarytargets by @fmeum in https://github.com/bazelbuild/rules_go/pull/3903 - Add //go/private:polyfill_bazel_features.bzl to sources. by @spags-lacework in https://github.com/bazelbuild/rules_go/pull/3908
- Reformat with buildifier by @fmeum in https://github.com/bazelbuild/rules_go/pull/3910
- GoLink action. Use -extar
if cc_toolchain provides ar path by @OparinE in https://github.com/bazelbuild/rules_go/pull/3916 - Mark
go_sdkextension asreproducibleby @fmeum in https://github.com/bazelbuild/rules_go/pull/3911 - Don't ignore the return value of runfiles.merge_all() by @EdSchouten in https://github.com/bazelbuild/rules_go/pull/3918
- Use Gazelle's
go_envin@rules_go//goby @fmeum in https://github.com/bazelbuild/rules_go/pull/3909 - Setting test.timeout according to TEST_TIMEOUT by @linzhp in https://github.com/bazelbuild/rules_go/pull/3920
- prepare rules_go v 0.47 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3923
New Contributors
- @Strum355 made their first contribution in https://github.com/bazelbuild/rules_go/pull/3863
- @sgowroji made their first contribution in https://github.com/bazelbuild/rules_go/pull/3869
- @mattyclarkson made their first contribution in https://github.com/bazelbuild/rules_go/pull/3872
- @scaiper made their first contribution in https://github.com/bazelbuild/rules_go/pull/3874
- @dcarney made their first contribution in https://github.com/bazelbuild/rules_go/pull/3881
- @mmrath made their first contribution in https://github.com/bazelbuild/rules_go/pull/3882
- @hauserx made their first contribution in https://github.com/bazelbuild/rules_go/pull/3885
- @baizhenyu made their first contribution in https://github.com/bazelbuild/rules_go/pull/3891
- @c-mita made their first contribution in https://github.com/bazelbuild/rules_go/pull/3896
- @spags-lacework made their first contribution in https://github.com/bazelbuild/rules_go/pull/3908
- @OparinE made their first contribution in https://github.com/bazelbuild/rules_go/pull/3916
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.46.0...v0.47.0
v0.46.0
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "80a98277ad1311dacd837f9b16db62887702e9f1d1c4c9f796d0121a46c8e184",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.22.0")
What's Changed
- Support custom
GOARMarchitecture levels via platform constraints by @LINKIWI in https://github.com/bazelbuild/rules_go/pull/3837 - Emit nogo facts into a separate archive by @fmeum in https://github.com/bazelbuild/rules_go/pull/3789
- go_test: ensure external source compilation has data by @sluongng in https://github.com/bazelbuild/rules_go/pull/3848
- Fix invocation of assembler for go1.22 by @jquirke in https://github.com/bazelbuild/rules_go/pull/3756
- nogo: Create a go_register_nogo wrapper for WORKSPACE users. by @DolceTriade in https://github.com/bazelbuild/rules_go/pull/3842
- prepare minor release 0.46 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3854
New Contributors
- @LINKIWI made their first contribution in https://github.com/bazelbuild/rules_go/pull/3837
- @jquirke made their first contribution in https://github.com/bazelbuild/rules_go/pull/3756
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.45.1...v0.46.0
v0.45.1
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "6734a719993b1ba4ebe9806e853864395a8d3968ad27f9dd759c196b3eb3abe8",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.45.1/rules_go-v0.45.1.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.45.1/rules_go-v0.45.1.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.21.6")
What's Changed
- Disable
layering_checkfeature in CGo tests by @fmeum in https://github.com/bazelbuild/rules_go/pull/3829 - Print stack traces without panicking on test timeout by @fmeum in https://github.com/bazelbuild/rules_go/pull/3833
- Fix regression in empty
.gofile filtering for nogo by @fmeum in https://github.com/bazelbuild/rules_go/pull/3832 - release patch version 0.45.1 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3836
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.45.0...v0.45.1
v0.45.0
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "de7974538c31f76658e0d333086c69efdf6679dbc6a466ac29e65434bf47076d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.45.0/rules_go-v0.45.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.45.0/rules_go-v0.45.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.6")
What's Changed
- nogo: use original source files instead of coverage-instrumented by @emmaxy in https://github.com/bazelbuild/rules_go/pull/3770
- Allow compilers to be overwritten in go_grpc_library() by @mering in https://github.com/bazelbuild/rules_go/pull/3812
- update documentation for 0.44 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3813
- Temporarily undo deprecation of
//proto:go_grpcby @fmeum in https://github.com/bazelbuild/rules_go/pull/3818 - Rename bazel_features polyfill to prevent conflicts by @fmeum in https://github.com/bazelbuild/rules_go/pull/3817
- Handle prerelease versions in polyfill by @illicitonion in https://github.com/bazelbuild/rules_go/pull/3821
- Extend gomock to allow passing an source_importpath instead of library when operating in source mode by @therve in https://github.com/bazelbuild/rules_go/pull/3822
- Fix coverage collection with modified
COVERAGE_DIRenv variable by @fmeum in https://github.com/bazelbuild/rules_go/pull/3820 - improving logging for subcommand failure by @linzhp in https://github.com/bazelbuild/rules_go/pull/3824
- release rules go 0.45.0 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3825
New Contributors
- @emmaxy made their first contribution in https://github.com/bazelbuild/rules_go/pull/3770
- @therve made their first contribution in https://github.com/bazelbuild/rules_go/pull/3822
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.44.2...v0.45.0
v0.44.2
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "7c76d6236b28ff695aa28cf35f95de317a9472fd1fb14ac797c9bf684f09b37c",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.44.2/rules_go-v0.44.2.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.44.2/rules_go-v0.44.2.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.21.5")
What's Changed
- Make C++ toolchain optional by @illicitonion in https://github.com/bazelbuild/rules_go/pull/3390
- Fix a race detected only if a test times out by @patrickmscott in https://github.com/bazelbuild/rules_go/pull/3808
- registering timeout handler synchronously by @linzhp in https://github.com/bazelbuild/rules_go/pull/3810
- patch release 0.44.2 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3811
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.44.1...v0.44.2
v0.44.1
Why a patch release
This patch release is to include https://github.com/bazelbuild/rules_go/commit/43c40a9a596fcf37a5b7b0ae5f32832277393587 which reverts a change to forcefully upgrade genproto transitively, which is causing linker failures since google.golang.org/genproto/googleapis/rpc was separated from google.golang.org/genproto
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "b6828eb2d03bb5ef76f2077f8670b211fe792e77ddb83450ea9f887df04db9c7",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.44.1/rules_go-v0.44.1.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.44.1/rules_go-v0.44.1.zip",
],
)
load("@​io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.21.5")
What's Changed
- Slightly tweak deprecation wording for //proto:go_grpc by @ryanpbrewster in https://github.com/bazelbuild/rules_go/pull/3790
- Let
@rules_go//gofile path end with/bin/goby @fmeum in https://github.com/bazelbuild/rules_go/pull/3791 - Always attempt to set RUNFILES_DIR and JAVA_RUNFILES in
runfiles.Envby @fmeum in https://github.com/bazelbuild/rules_go/pull/3778 - Update Bzlmod guide by @fmeum in https://github.com/bazelbuild/rules_go/pull/3794
- add maintainers to metadata.json template by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3797
- Link to the isolated extension usages issue in Bzlmod guide by @fmeum in https://github.com/bazelbuild/rules_go/pull/3800
- Support
--nolegacy_external_runfilesby @fmeum in https://github.com/bazelbuild/rules_go/pull/3795 - downgrade genproto in go.mod by @linzhp in https://github.com/bazelbuild/rules_go/pull/3803
- prepare patch release 0.44.1 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3804
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.44.0...v0.44.1
v0.44.0
IMPORTANT CHANGES
Tests now call panic() when they timeout
This means there is a running goroutine (which will fail goleak detection)
[Goroutine 26 in state chan receive, with github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1 on top of the
This also means there may be some different behavior when calling SIGTERM directly from within a test.
For more information see: https://github.com/bazelbuild/rules_go/pull/3749
Bzlmod support for nogo
This can be added in your MODULE.bazel file:
go_sdk = use_extension("@​rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(
name = "go_sdk",
...
)
go_sdk.nogo(
nogo = "//:default_nogo",
)
For more information see https://github.com/bazelbuild/rules_go/pull/3782
WORKSPACE code
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "c8035e8ae248b56040a65ad3f0b7434712e2037e5dfdcebfe97576e620422709",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.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.5")
What's Changed
- Do not test on centos7 by @fmeum in https://github.com/bazelbuild/rules_go/pull/3757
- update documentation for 0.43.0 release by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3758
- Add toolchain param to affected actions by @kotlaja in https://github.com/bazelbuild/rules_go/pull/3760
- Update GO_TOOLCHAIN string to Label and add toolchain param to one more action by @kotlaja in https://github.com/bazelbuild/rules_go/pull/3762
- Do not choose prereleases as highest versions by @mering in https://github.com/bazelbuild/rules_go/pull/3764
- Remove unmaintained validators by @mering in https://github.com/bazelbuild/rules_go/pull/3768
- Use
tools.gotrick to makego.modwork withgo mod tidyby @fmeum in https://github.com/bazelbuild/rules_go/pull/3775 - feat(packagesdriver): add _test suffix to pkgPath by @JamyDev in https://github.com/bazelbuild/rules_go/pull/3777
- Typo --test_runner_fail_fast by @Clement-Jean in https://github.com/bazelbuild/rules_go/pull/3773
- Panic when a test times out by @fmeum in https://github.com/bazelbuild/rules_go/pull/3749
- Fix integration tests with Bazel@HEAD by @fmeum in https://github.com/bazelbuild/rules_go/pull/3781
- Automatically register SDKs for common execution platforms by @fmeum in https://github.com/bazelbuild/rules_go/pull/3634
- fix
aux_filesrelative paths for gomock source mocks (fix #3752) by @ikavalio in https://github.com/bazelbuild/rules_go/pull/3753 - Update to modern protoc plugins by @mering in https://github.com/bazelbuild/rules_go/pull/3761
- Add integration tests for protoc-gen-go-grpc by @ryanpbrewster in https://github.com/bazelbuild/rules_go/pull/3787
- Add Bzlmod support for
nogoby @fmeum in https://github.com/bazelbuild/rules_go/pull/3782 - fix(gpd): don't panic on invalid root by @JamyDev in https://github.com/bazelbuild/rules_go/pull/3779
- Pass env to gentestmain so it will correctly filter by @patrickmscott in https://github.com/bazelbuild/rules_go/pull/3785
- prepare release 0.44.0 by @tyler-french in https://github.com/bazelbuild/rules_go/pull/3788
New Contributors
- @Clement-Jean made their first contribution in https://github.com/bazelbuild/rules_go/pull/3773
- @ikavalio made their first contribution in https://github.com/bazelbuild/rules_go/pull/3753
- @ryanpbrewster made their first contribution in https://github.com/bazelbuild/rules_go/pull/3787
Full Changelog: https://github.com/bazelbuild/rules_go/compare/v0.43.0...v0.44.0
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_de
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.
ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):
- 2 additional dependencies were updated
- The
godirective was updated for compatibility reasons
Details:
| Package | Change |
|---|---|
golang.org/x/sys |
v0.0.0-20220908164124-27713097b956 -> v0.15.0 |
google.golang.org/protobuf |
v1.28.0 -> v1.31.0 |
go |
1.19 -> 1.22.5 |