bazelbuild/rules_go (io_bazel_rules_go)
### [`v0.50.0`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.50.0)
[Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.49.0...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](https://redirect.github.com/JacobOaks) in [https://github.com/bazelbuild/rules_go/pull/3984](https://redirect.github.com/bazelbuild/rules_go/pull/3984)
- Migrate to macos_arm64 by [@meteorcloudy](https://redirect.github.com/meteorcloudy) in [https://github.com/bazelbuild/rules_go/pull/3990](https://redirect.github.com/bazelbuild/rules_go/pull/3990)
- Support matching release candidate toolchain versions by [@JacobOaks](https://redirect.github.com/JacobOaks) in [https://github.com/bazelbuild/rules_go/pull/3998](https://redirect.github.com/bazelbuild/rules_go/pull/3998)
- rm crosstool by [@sluongng](https://redirect.github.com/sluongng) in [https://github.com/bazelbuild/rules_go/pull/3986](https://redirect.github.com/bazelbuild/rules_go/pull/3986)
- fix(timeout.go): remove redundant leaked go func in RegisterTimeoutHandler by [@Roytangrb](https://redirect.github.com/Roytangrb) in [https://github.com/bazelbuild/rules_go/pull/4004](https://redirect.github.com/bazelbuild/rules_go/pull/4004)
- Run nogo in a separate validation action by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3995](https://redirect.github.com/bazelbuild/rules_go/pull/3995)
#### New Contributors
- [@JacobOaks](https://redirect.github.com/JacobOaks) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3984](https://redirect.github.com/bazelbuild/rules_go/pull/3984)
- [@Roytangrb](https://redirect.github.com/Roytangrb) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/4004](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.49.0)
[Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.48.1...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](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3915](https://redirect.github.com/bazelbuild/rules_go/pull/3915)
- Introduce rules_go_unsupported_feature by [@cramertj](https://redirect.github.com/cramertj) in [https://github.com/bazelbuild/rules_go/pull/3955](https://redirect.github.com/bazelbuild/rules_go/pull/3955)
- Automatically run `bazel mod tidy` in `@rules_go//go` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3927](https://redirect.github.com/bazelbuild/rules_go/pull/3927)
- Fix revive warning in testmain.go files by [@EdSchouten](https://redirect.github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3958](https://redirect.github.com/bazelbuild/rules_go/pull/3958)
- Revert "feat(mode): add `purego` tag when `pure` ([#3901](https://redirect.github.com/bazelbuild/rules_go/issues/3901))" by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3961](https://redirect.github.com/bazelbuild/rules_go/pull/3961)
- prepare patch release 0.48.1 by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3963](https://redirect.github.com/bazelbuild/rules_go/pull/3963)
- Fix broken link to https://bazel.build/concepts/dependencies#data-dependencies by [@alexbozhenko](https://redirect.github.com/alexbozhenko) in [https://github.com/bazelbuild/rules_go/pull/3960](https://redirect.github.com/bazelbuild/rules_go/pull/3960)
- docs: Discourage use `go_sdk.host()` in bzlmod.md (see [#713](https://redirect.github.com/bazelbuild/rules_go/issues/713)) by [@vorburger](https://redirect.github.com/vorburger) in [https://github.com/bazelbuild/rules_go/pull/3968](https://redirect.github.com/bazelbuild/rules_go/pull/3968)
- Add linux/ppc64le to GOARCH constraints by [@c16a](https://redirect.github.com/c16a) in [https://github.com/bazelbuild/rules_go/pull/3975](https://redirect.github.com/bazelbuild/rules_go/pull/3975)
- gopackagesdriver: Make kind query regexes anchored by [@jscissr](https://redirect.github.com/jscissr) in [https://github.com/bazelbuild/rules_go/pull/3978](https://redirect.github.com/bazelbuild/rules_go/pull/3978)
- Add a full `fs.FS` implementation to `runfiles` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3969](https://redirect.github.com/bazelbuild/rules_go/pull/3969)
- update readmes for latest release by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3988](https://redirect.github.com/bazelbuild/rules_go/pull/3988)
- prepare release 0.49.0 by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3989](https://redirect.github.com/bazelbuild/rules_go/pull/3989)
#### New Contributors
- [@cramertj](https://redirect.github.com/cramertj) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3955](https://redirect.github.com/bazelbuild/rules_go/pull/3955)
- [@alexbozhenko](https://redirect.github.com/alexbozhenko) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3960](https://redirect.github.com/bazelbuild/rules_go/pull/3960)
- [@vorburger](https://redirect.github.com/vorburger) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3968](https://redirect.github.com/bazelbuild/rules_go/pull/3968)
- [@c16a](https://redirect.github.com/c16a) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3975](https://redirect.github.com/bazelbuild/rules_go/pull/3975)
- [@jscissr](https://redirect.github.com/jscissr) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3978](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.48.1)
[Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.48.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.48.0)
[Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.47.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`](https://redirect.github.com/bazelbuild/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](https://redirect.github.com/stefanpenner) in [https://github.com/bazelbuild/rules_go/pull/3931](https://redirect.github.com/bazelbuild/rules_go/pull/3931)
- go_test: use different mnemonic for compilation by [@sluongng](https://redirect.github.com/sluongng) in [https://github.com/bazelbuild/rules_go/pull/3936](https://redirect.github.com/bazelbuild/rules_go/pull/3936)
- Add go.work support to the documentation by [@stefanpenner](https://redirect.github.com/stefanpenner) in [https://github.com/bazelbuild/rules_go/pull/3932](https://redirect.github.com/bazelbuild/rules_go/pull/3932)
- feat(mode): add `purego` tag when `pure` by [@mattyclarkson](https://redirect.github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3901](https://redirect.github.com/bazelbuild/rules_go/pull/3901)
- generate_test_main: Move timeout handling back to bzltestutil by [@DolceTriade](https://redirect.github.com/DolceTriade) in [https://github.com/bazelbuild/rules_go/pull/3939](https://redirect.github.com/bazelbuild/rules_go/pull/3939)
- Add support for `--incompatible_enable_proto_toolchain_resolution` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3919](https://redirect.github.com/bazelbuild/rules_go/pull/3919)
- Add exec_compatible_with to @go_sdk//:builder by [@EdSchouten](https://redirect.github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3943](https://redirect.github.com/bazelbuild/rules_go/pull/3943)
- prepare v0.48.0 release by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3946](https://redirect.github.com/bazelbuild/rules_go/pull/3946)
#### New Contributors
- [@stefanpenner](https://redirect.github.com/stefanpenner) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3931](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.47.1)
[Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.47.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](https://redirect.github.com/sluongng) in [https://github.com/bazelbuild/rules_go/pull/3929](https://redirect.github.com/bazelbuild/rules_go/pull/3929)
- feat: support syso files in srcs. by [@connyay](https://redirect.github.com/connyay) in [https://github.com/bazelbuild/rules_go/pull/3763](https://redirect.github.com/bazelbuild/rules_go/pull/3763)
- prepare patch release 0.47.1 by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3933](https://redirect.github.com/bazelbuild/rules_go/pull/3933)
#### New Contributors
- [@connyay](https://redirect.github.com/connyay) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3763](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.47.0)
[Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.46.0...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.yml` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3861](https://redirect.github.com/bazelbuild/rules_go/pull/3861)
- Update toolchains_llvm URL and hash by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3864](https://redirect.github.com/bazelbuild/rules_go/pull/3864)
- pass correct (non `"main"`) importpath to nogo for `main` package by [@Strum355](https://redirect.github.com/Strum355) in [https://github.com/bazelbuild/rules_go/pull/3863](https://redirect.github.com/bazelbuild/rules_go/pull/3863)
- Make exec cfg check for `//go` stricter by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3867](https://redirect.github.com/bazelbuild/rules_go/pull/3867)
- Fixes the Bazel CI error by [@sgowroji](https://redirect.github.com/sgowroji) in [https://github.com/bazelbuild/rules_go/pull/3869](https://redirect.github.com/bazelbuild/rules_go/pull/3869)
- \[go_library] add .x file to declared output files in DefaultInfo by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3866](https://redirect.github.com/bazelbuild/rules_go/pull/3866)
- Remove Latin-1 workaround on Bazel 6.4.0+ by [@mattyclarkson](https://redirect.github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3872](https://redirect.github.com/bazelbuild/rules_go/pull/3872)
- fix sdk download for common execution platforms by [@scaiper](https://redirect.github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3874](https://redirect.github.com/bazelbuild/rules_go/pull/3874)
- Bump Go version to 1.21.8 by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3880](https://redirect.github.com/bazelbuild/rules_go/pull/3880)
- Update README.rst to point to correct GH release tags by [@dcarney](https://redirect.github.com/dcarney) in [https://github.com/bazelbuild/rules_go/pull/3881](https://redirect.github.com/bazelbuild/rules_go/pull/3881)
- Update bzlmod.md fix typo by [@mmrath](https://redirect.github.com/mmrath) in [https://github.com/bazelbuild/rules_go/pull/3882](https://redirect.github.com/bazelbuild/rules_go/pull/3882)
- Cleanup temp dirs in GoToolchainBinaryBuild by [@hauserx](https://redirect.github.com/hauserx) in [https://github.com/bazelbuild/rules_go/pull/3885](https://redirect.github.com/bazelbuild/rules_go/pull/3885)
- gopackagesdriver: move and simplify test by [@jayconrod](https://redirect.github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3856](https://redirect.github.com/bazelbuild/rules_go/pull/3856)
- Support Go version schema change since 1.21 by [@baizhenyu](https://redirect.github.com/baizhenyu) in [https://github.com/bazelbuild/rules_go/pull/3891](https://redirect.github.com/bazelbuild/rules_go/pull/3891)
- gopackagesdriver: fix version check with Bazel development versions by [@jayconrod](https://redirect.github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3893](https://redirect.github.com/bazelbuild/rules_go/pull/3893)
- Revert "improving logging for subcommand failure ([#3824](https://redirect.github.com/bazelbuild/rules_go/issues/3824))" by [@linzhp](https://redirect.github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3892](https://redirect.github.com/bazelbuild/rules_go/pull/3892)
- Replace instances of to_json() method with json.encode(..) by [@c-mita](https://redirect.github.com/c-mita) in [https://github.com/bazelbuild/rules_go/pull/3896](https://redirect.github.com/bazelbuild/rules_go/pull/3896)
- add nogo parsing support for nogo explanations by [@andyscott](https://redirect.github.com/andyscott) in [https://github.com/bazelbuild/rules_go/pull/3899](https://redirect.github.com/bazelbuild/rules_go/pull/3899)
- \[nogo] match regexp againts relative paths by [@scaiper](https://redirect.github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3898](https://redirect.github.com/bazelbuild/rules_go/pull/3898)
- Add `bazel_features` transitive `.bzl`s to `bzl_library` targets by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3903](https://redirect.github.com/bazelbuild/rules_go/pull/3903)
- Add //go/private:polyfill_bazel_features.bzl to sources. by [@spags-lacework](https://redirect.github.com/spags-lacework) in [https://github.com/bazelbuild/rules_go/pull/3908](https://redirect.github.com/bazelbuild/rules_go/pull/3908)
- Reformat with buildifier by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3910](https://redirect.github.com/bazelbuild/rules_go/pull/3910)
- GoLink action. Use -extar if cc_toolchain provides ar path by [@OparinE](https://redirect.github.com/OparinE) in [https://github.com/bazelbuild/rules_go/pull/3916](https://redirect.github.com/bazelbuild/rules_go/pull/3916)
- Mark `go_sdk` extension as `reproducible` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3911](https://redirect.github.com/bazelbuild/rules_go/pull/3911)
- Don't ignore the return value of runfiles.merge_all() by [@EdSchouten](https://redirect.github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3918](https://redirect.github.com/bazelbuild/rules_go/pull/3918)
- Use Gazelle's `go_env` in `@rules_go//go` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3909](https://redirect.github.com/bazelbuild/rules_go/pull/3909)
- Setting test.timeout according to TEST_TIMEOUT by [@linzhp](https://redirect.github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3920](https://redirect.github.com/bazelbuild/rules_go/pull/3920)
- prepare rules_go v 0.47 by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3923](https://redirect.github.com/bazelbuild/rules_go/pull/3923)
#### New Contributors
- [@Strum355](https://redirect.github.com/Strum355) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3863](https://redirect.github.com/bazelbuild/rules_go/pull/3863)
- [@sgowroji](https://redirect.github.com/sgowroji) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3869](https://redirect.github.com/bazelbuild/rules_go/pull/3869)
- [@mattyclarkson](https://redirect.github.com/mattyclarkson) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3872](https://redirect.github.com/bazelbuild/rules_go/pull/3872)
- [@scaiper](https://redirect.github.com/scaiper) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3874](https://redirect.github.com/bazelbuild/rules_go/pull/3874)
- [@dcarney](https://redirect.github.com/dcarney) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3881](https://redirect.github.com/bazelbuild/rules_go/pull/3881)
- [@mmrath](https://redirect.github.com/mmrath) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3882](https://redirect.github.com/bazelbuild/rules_go/pull/3882)
- [@hauserx](https://redirect.github.com/hauserx) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3885](https://redirect.github.com/bazelbuild/rules_go/pull/3885)
- [@baizhenyu](https://redirect.github.com/baizhenyu) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3891](https://redirect.github.com/bazelbuild/rules_go/pull/3891)
- [@c-mita](https://redirect.github.com/c-mita) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3896](https://redirect.github.com/bazelbuild/rules_go/pull/3896)
- [@spags-lacework](https://redirect.github.com/spags-lacework) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3908](https://redirect.github.com/bazelbuild/rules_go/pull/3908)
- [@OparinE](https://redirect.github.com/OparinE) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3916](https://redirect.github.com/bazelbuild/rules_go/pull/3916)
**Full Changelog**: https://github.com/bazelbuild/rules_go/compare/v0.46.0...v0.47.0
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 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 contains the following updates:
v0.46.0
->v0.50.0
Release Notes
bazelbuild/rules_go (io_bazel_rules_go)
### [`v0.50.0`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.50.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.49.0...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](https://redirect.github.com/JacobOaks) in [https://github.com/bazelbuild/rules_go/pull/3984](https://redirect.github.com/bazelbuild/rules_go/pull/3984) - Migrate to macos_arm64 by [@meteorcloudy](https://redirect.github.com/meteorcloudy) in [https://github.com/bazelbuild/rules_go/pull/3990](https://redirect.github.com/bazelbuild/rules_go/pull/3990) - Support matching release candidate toolchain versions by [@JacobOaks](https://redirect.github.com/JacobOaks) in [https://github.com/bazelbuild/rules_go/pull/3998](https://redirect.github.com/bazelbuild/rules_go/pull/3998) - rm crosstool by [@sluongng](https://redirect.github.com/sluongng) in [https://github.com/bazelbuild/rules_go/pull/3986](https://redirect.github.com/bazelbuild/rules_go/pull/3986) - fix(timeout.go): remove redundant leaked go func in RegisterTimeoutHandler by [@Roytangrb](https://redirect.github.com/Roytangrb) in [https://github.com/bazelbuild/rules_go/pull/4004](https://redirect.github.com/bazelbuild/rules_go/pull/4004) - Run nogo in a separate validation action by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3995](https://redirect.github.com/bazelbuild/rules_go/pull/3995) #### New Contributors - [@JacobOaks](https://redirect.github.com/JacobOaks) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3984](https://redirect.github.com/bazelbuild/rules_go/pull/3984) - [@Roytangrb](https://redirect.github.com/Roytangrb) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/4004](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.49.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.48.1...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](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3915](https://redirect.github.com/bazelbuild/rules_go/pull/3915) - Introduce rules_go_unsupported_feature by [@cramertj](https://redirect.github.com/cramertj) in [https://github.com/bazelbuild/rules_go/pull/3955](https://redirect.github.com/bazelbuild/rules_go/pull/3955) - Automatically run `bazel mod tidy` in `@rules_go//go` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3927](https://redirect.github.com/bazelbuild/rules_go/pull/3927) - Fix revive warning in testmain.go files by [@EdSchouten](https://redirect.github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3958](https://redirect.github.com/bazelbuild/rules_go/pull/3958) - Revert "feat(mode): add `purego` tag when `pure` ([#3901](https://redirect.github.com/bazelbuild/rules_go/issues/3901))" by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3961](https://redirect.github.com/bazelbuild/rules_go/pull/3961) - prepare patch release 0.48.1 by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3963](https://redirect.github.com/bazelbuild/rules_go/pull/3963) - Fix broken link to https://bazel.build/concepts/dependencies#data-dependencies by [@alexbozhenko](https://redirect.github.com/alexbozhenko) in [https://github.com/bazelbuild/rules_go/pull/3960](https://redirect.github.com/bazelbuild/rules_go/pull/3960) - docs: Discourage use `go_sdk.host()` in bzlmod.md (see [#713](https://redirect.github.com/bazelbuild/rules_go/issues/713)) by [@vorburger](https://redirect.github.com/vorburger) in [https://github.com/bazelbuild/rules_go/pull/3968](https://redirect.github.com/bazelbuild/rules_go/pull/3968) - Add linux/ppc64le to GOARCH constraints by [@c16a](https://redirect.github.com/c16a) in [https://github.com/bazelbuild/rules_go/pull/3975](https://redirect.github.com/bazelbuild/rules_go/pull/3975) - gopackagesdriver: Make kind query regexes anchored by [@jscissr](https://redirect.github.com/jscissr) in [https://github.com/bazelbuild/rules_go/pull/3978](https://redirect.github.com/bazelbuild/rules_go/pull/3978) - Add a full `fs.FS` implementation to `runfiles` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3969](https://redirect.github.com/bazelbuild/rules_go/pull/3969) - update readmes for latest release by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3988](https://redirect.github.com/bazelbuild/rules_go/pull/3988) - prepare release 0.49.0 by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3989](https://redirect.github.com/bazelbuild/rules_go/pull/3989) #### New Contributors - [@cramertj](https://redirect.github.com/cramertj) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3955](https://redirect.github.com/bazelbuild/rules_go/pull/3955) - [@alexbozhenko](https://redirect.github.com/alexbozhenko) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3960](https://redirect.github.com/bazelbuild/rules_go/pull/3960) - [@vorburger](https://redirect.github.com/vorburger) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3968](https://redirect.github.com/bazelbuild/rules_go/pull/3968) - [@c16a](https://redirect.github.com/c16a) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3975](https://redirect.github.com/bazelbuild/rules_go/pull/3975) - [@jscissr](https://redirect.github.com/jscissr) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3978](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.48.1) [Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.48.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.48.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.47.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`](https://redirect.github.com/bazelbuild/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](https://redirect.github.com/stefanpenner) in [https://github.com/bazelbuild/rules_go/pull/3931](https://redirect.github.com/bazelbuild/rules_go/pull/3931) - go_test: use different mnemonic for compilation by [@sluongng](https://redirect.github.com/sluongng) in [https://github.com/bazelbuild/rules_go/pull/3936](https://redirect.github.com/bazelbuild/rules_go/pull/3936) - Add go.work support to the documentation by [@stefanpenner](https://redirect.github.com/stefanpenner) in [https://github.com/bazelbuild/rules_go/pull/3932](https://redirect.github.com/bazelbuild/rules_go/pull/3932) - feat(mode): add `purego` tag when `pure` by [@mattyclarkson](https://redirect.github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3901](https://redirect.github.com/bazelbuild/rules_go/pull/3901) - generate_test_main: Move timeout handling back to bzltestutil by [@DolceTriade](https://redirect.github.com/DolceTriade) in [https://github.com/bazelbuild/rules_go/pull/3939](https://redirect.github.com/bazelbuild/rules_go/pull/3939) - Add support for `--incompatible_enable_proto_toolchain_resolution` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3919](https://redirect.github.com/bazelbuild/rules_go/pull/3919) - Add exec_compatible_with to @go_sdk//:builder by [@EdSchouten](https://redirect.github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3943](https://redirect.github.com/bazelbuild/rules_go/pull/3943) - prepare v0.48.0 release by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3946](https://redirect.github.com/bazelbuild/rules_go/pull/3946) #### New Contributors - [@stefanpenner](https://redirect.github.com/stefanpenner) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3931](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.47.1) [Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.47.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](https://redirect.github.com/sluongng) in [https://github.com/bazelbuild/rules_go/pull/3929](https://redirect.github.com/bazelbuild/rules_go/pull/3929) - feat: support syso files in srcs. by [@connyay](https://redirect.github.com/connyay) in [https://github.com/bazelbuild/rules_go/pull/3763](https://redirect.github.com/bazelbuild/rules_go/pull/3763) - prepare patch release 0.47.1 by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3933](https://redirect.github.com/bazelbuild/rules_go/pull/3933) #### New Contributors - [@connyay](https://redirect.github.com/connyay) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3763](https://redirect.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`](https://redirect.github.com/bazelbuild/rules_go/releases/tag/v0.47.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_go/compare/v0.46.0...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.yml` by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3861](https://redirect.github.com/bazelbuild/rules_go/pull/3861) - Update toolchains_llvm URL and hash by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3864](https://redirect.github.com/bazelbuild/rules_go/pull/3864) - pass correct (non `"main"`) importpath to nogo for `main` package by [@Strum355](https://redirect.github.com/Strum355) in [https://github.com/bazelbuild/rules_go/pull/3863](https://redirect.github.com/bazelbuild/rules_go/pull/3863) - Make exec cfg check for `//go` stricter by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3867](https://redirect.github.com/bazelbuild/rules_go/pull/3867) - Fixes the Bazel CI error by [@sgowroji](https://redirect.github.com/sgowroji) in [https://github.com/bazelbuild/rules_go/pull/3869](https://redirect.github.com/bazelbuild/rules_go/pull/3869) - \[go_library] add .x file to declared output files in DefaultInfo by [@tyler-french](https://redirect.github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3866](https://redirect.github.com/bazelbuild/rules_go/pull/3866) - Remove Latin-1 workaround on Bazel 6.4.0+ by [@mattyclarkson](https://redirect.github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3872](https://redirect.github.com/bazelbuild/rules_go/pull/3872) - fix sdk download for common execution platforms by [@scaiper](https://redirect.github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3874](https://redirect.github.com/bazelbuild/rules_go/pull/3874) - Bump Go version to 1.21.8 by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3880](https://redirect.github.com/bazelbuild/rules_go/pull/3880) - Update README.rst to point to correct GH release tags by [@dcarney](https://redirect.github.com/dcarney) in [https://github.com/bazelbuild/rules_go/pull/3881](https://redirect.github.com/bazelbuild/rules_go/pull/3881) - Update bzlmod.md fix typo by [@mmrath](https://redirect.github.com/mmrath) in [https://github.com/bazelbuild/rules_go/pull/3882](https://redirect.github.com/bazelbuild/rules_go/pull/3882) - Cleanup temp dirs in GoToolchainBinaryBuild by [@hauserx](https://redirect.github.com/hauserx) in [https://github.com/bazelbuild/rules_go/pull/3885](https://redirect.github.com/bazelbuild/rules_go/pull/3885) - gopackagesdriver: move and simplify test by [@jayconrod](https://redirect.github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3856](https://redirect.github.com/bazelbuild/rules_go/pull/3856) - Support Go version schema change since 1.21 by [@baizhenyu](https://redirect.github.com/baizhenyu) in [https://github.com/bazelbuild/rules_go/pull/3891](https://redirect.github.com/bazelbuild/rules_go/pull/3891) - gopackagesdriver: fix version check with Bazel development versions by [@jayconrod](https://redirect.github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3893](https://redirect.github.com/bazelbuild/rules_go/pull/3893) - Revert "improving logging for subcommand failure ([#3824](https://redirect.github.com/bazelbuild/rules_go/issues/3824))" by [@linzhp](https://redirect.github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3892](https://redirect.github.com/bazelbuild/rules_go/pull/3892) - Replace instances of to_json() method with json.encode(..) by [@c-mita](https://redirect.github.com/c-mita) in [https://github.com/bazelbuild/rules_go/pull/3896](https://redirect.github.com/bazelbuild/rules_go/pull/3896) - add nogo parsing support for nogo explanations by [@andyscott](https://redirect.github.com/andyscott) in [https://github.com/bazelbuild/rules_go/pull/3899](https://redirect.github.com/bazelbuild/rules_go/pull/3899) - \[nogo] match regexp againts relative paths by [@scaiper](https://redirect.github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3898](https://redirect.github.com/bazelbuild/rules_go/pull/3898) - Add `bazel_features` transitive `.bzl`s to `bzl_library` targets by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3903](https://redirect.github.com/bazelbuild/rules_go/pull/3903) - Add //go/private:polyfill_bazel_features.bzl to sources. by [@spags-lacework](https://redirect.github.com/spags-lacework) in [https://github.com/bazelbuild/rules_go/pull/3908](https://redirect.github.com/bazelbuild/rules_go/pull/3908) - Reformat with buildifier by [@fmeum](https://redirect.github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3910](https://redirect.github.com/bazelbuild/rules_go/pull/3910) - GoLink action. Use -extarConfiguration
📅 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 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.
This PR was generated by Mend Renovate. View the repository job log.