-
-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gopackagesdriver: move and simplify test #3856
Conversation
2abfe08
to
e085a76
Compare
Thanks, slow tests are a pain. The failing test suggests that there could be some issue related to flags changing between |
Hmm, the only thing in this PR that might have affected this test was moving I actually can't reproduce this: instead, I get
That fails on |
Did a quick scan over the code, looks good. I'll do a more thorough review tomorrow. |
All right, tests are green. The reason why I was seeing After finding those I could reproduce the error, caused by using the wrong output root directory. |
@@ -23,7 +23,7 @@ type JSONPackagesDriver struct { | |||
registry *PackageRegistry | |||
} | |||
|
|||
func NewJSONPackagesDriver(jsonFiles []string, prf PathResolverFunc, bazelVersion string) (*JSONPackagesDriver, error) { | |||
func NewJSONPackagesDriver(jsonFiles []string, prf PathResolverFunc, bazelVersion bazelVersion) (*JSONPackagesDriver, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no function that returns a bazelVersion
exposed in this package. This is implicitly making this constructor package private. If that's the intent, can you make the whole thing private newJSONPackagesDriver
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind if I address that in a follow-up?
This is a main
package so nothing can import it, but it has a lot of exported symbols. They all ought to be renamed.
Moved //tests/integration/gopackagesdriver:gopackagesdriver_test to //go/tools/gopackagesdriver:gopackagesdriver_test. Previously the test invoked gopackagesdriver with 'bazel run' in a temporary workspace, which forced Bazel to build it, slowing down the test significantly, especially on Windows. Now, the test embeds the gopackagesdriver library and invokes it directly. The driver still runs in a temporary workspace and still needs to invoke bazel, so the test is still slow, but it's faster than before. Also, a number of other improvements: - gopackagesdriver now sets --consistent_labels if the bazel version is 6.4.0 or later instead of guessing based on the link-stamped rules_go repo name. - bazel_testing.BazelCmd now writes --output_user_root to a .bazelrc file instead of passing it to commands. gopackagesdriver invokes bazel directly, so this lets it use the same output root.
97925b7
to
eabc988
Compare
I'd be grateful if someone can merge this. Google revoked all my powers here when I left, so I'm just a regular citizen now. |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io_bazel_rules_go](https://github.com/bazelbuild/rules_go) | http_archive | minor | `v0.46.0` -> `v0.47.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_go (io_bazel_rules_go)</summary> ### [`v0.47.0`](https://github.com/bazelbuild/rules_go/releases/tag/v0.47.0) [Compare Source](https://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://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3861](https://github.com/bazelbuild/rules_go/pull/3861) - Update toolchains_llvm URL and hash by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3864](https://github.com/bazelbuild/rules_go/pull/3864) - pass correct (non `"main"`) importpath to nogo for `main` package by [@​Strum355](https://github.com/Strum355) in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - Make exec cfg check for `//go` stricter by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3867](https://github.com/bazelbuild/rules_go/pull/3867) - Fixes the Bazel CI error by [@​sgowroji](https://github.com/sgowroji) in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - \[go_library] add .x file to declared output files in DefaultInfo by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3866](https://github.com/bazelbuild/rules_go/pull/3866) - Remove Latin-1 workaround on Bazel 6.4.0+ by [@​mattyclarkson](https://github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - fix sdk download for common execution platforms by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - Bump Go version to 1.21.8 by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3880](https://github.com/bazelbuild/rules_go/pull/3880) - Update README.rst to point to correct GH release tags by [@​dcarney](https://github.com/dcarney) in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - Update bzlmod.md fix typo by [@​mmrath](https://github.com/mmrath) in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - Cleanup temp dirs in GoToolchainBinaryBuild by [@​hauserx](https://github.com/hauserx) in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - gopackagesdriver: move and simplify test by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3856](https://github.com/bazelbuild/rules_go/pull/3856) - Support Go version schema change since 1.21 by [@​baizhenyu](https://github.com/baizhenyu) in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - gopackagesdriver: fix version check with Bazel development versions by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3893](https://github.com/bazelbuild/rules_go/pull/3893) - Revert "improving logging for subcommand failure ([#​3824](https://github.com/bazelbuild/rules_go/issues/3824))" by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3892](https://github.com/bazelbuild/rules_go/pull/3892) - Replace instances of to_json() method with json.encode(..) by [@​c-mita](https://github.com/c-mita) in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - add nogo parsing support for nogo explanations by [@​andyscott](https://github.com/andyscott) in [https://github.com/bazelbuild/rules_go/pull/3899](https://github.com/bazelbuild/rules_go/pull/3899) - \[nogo] match regexp againts relative paths by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3898](https://github.com/bazelbuild/rules_go/pull/3898) - Add `bazel_features` transitive `.bzl`s to `bzl_library` targets by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3903](https://github.com/bazelbuild/rules_go/pull/3903) - Add //go/private:polyfill_bazel_features.bzl to sources. by [@​spags-lacework](https://github.com/spags-lacework) in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - Reformat with buildifier by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3910](https://github.com/bazelbuild/rules_go/pull/3910) - GoLink action. Use -extar <ar path> if cc_toolchain provides ar path by [@​OparinE](https://github.com/OparinE) in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) - Mark `go_sdk` extension as `reproducible` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3911](https://github.com/bazelbuild/rules_go/pull/3911) - Don't ignore the return value of runfiles.merge_all() by [@​EdSchouten](https://github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3918](https://github.com/bazelbuild/rules_go/pull/3918) - Use Gazelle's `go_env` in `@rules_go//go` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3909](https://github.com/bazelbuild/rules_go/pull/3909) - Setting test.timeout according to TEST_TIMEOUT by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3920](https://github.com/bazelbuild/rules_go/pull/3920) - prepare rules_go v 0.47 by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3923](https://github.com/bazelbuild/rules_go/pull/3923) #### New Contributors - [@​Strum355](https://github.com/Strum355) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - [@​sgowroji](https://github.com/sgowroji) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - [@​mattyclarkson](https://github.com/mattyclarkson) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - [@​scaiper](https://github.com/scaiper) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - [@​dcarney](https://github.com/dcarney) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - [@​mmrath](https://github.com/mmrath) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - [@​hauserx](https://github.com/hauserx) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - [@​baizhenyu](https://github.com/baizhenyu) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - [@​c-mita](https://github.com/c-mita) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - [@​spags-lacework](https://github.com/spags-lacework) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - [@​OparinE](https://github.com/OparinE) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) **Full Changelog**: bazel-contrib/rules_go@v0.46.0...v0.47.0 </details> --- ### 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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDkuNCIsInVwZGF0ZWRJblZlciI6IjM2LjEwOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io_bazel_rules_go](https://github.com/bazelbuild/rules_go) | http_archive | minor | `v0.46.0` -> `v0.47.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>bazelbuild/rules_go (io_bazel_rules_go)</summary> ### [`v0.47.0`](https://github.com/bazelbuild/rules_go/releases/tag/v0.47.0) [Compare Source](https://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://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3861](https://github.com/bazelbuild/rules_go/pull/3861) - Update toolchains_llvm URL and hash by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3864](https://github.com/bazelbuild/rules_go/pull/3864) - pass correct (non `"main"`) importpath to nogo for `main` package by [@​Strum355](https://github.com/Strum355) in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - Make exec cfg check for `//go` stricter by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3867](https://github.com/bazelbuild/rules_go/pull/3867) - Fixes the Bazel CI error by [@​sgowroji](https://github.com/sgowroji) in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - \[go_library] add .x file to declared output files in DefaultInfo by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3866](https://github.com/bazelbuild/rules_go/pull/3866) - Remove Latin-1 workaround on Bazel 6.4.0+ by [@​mattyclarkson](https://github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - fix sdk download for common execution platforms by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - Bump Go version to 1.21.8 by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3880](https://github.com/bazelbuild/rules_go/pull/3880) - Update README.rst to point to correct GH release tags by [@​dcarney](https://github.com/dcarney) in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - Update bzlmod.md fix typo by [@​mmrath](https://github.com/mmrath) in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - Cleanup temp dirs in GoToolchainBinaryBuild by [@​hauserx](https://github.com/hauserx) in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - gopackagesdriver: move and simplify test by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3856](https://github.com/bazelbuild/rules_go/pull/3856) - Support Go version schema change since 1.21 by [@​baizhenyu](https://github.com/baizhenyu) in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - gopackagesdriver: fix version check with Bazel development versions by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3893](https://github.com/bazelbuild/rules_go/pull/3893) - Revert "improving logging for subcommand failure ([#​3824](https://github.com/bazelbuild/rules_go/issues/3824))" by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3892](https://github.com/bazelbuild/rules_go/pull/3892) - Replace instances of to_json() method with json.encode(..) by [@​c-mita](https://github.com/c-mita) in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - add nogo parsing support for nogo explanations by [@​andyscott](https://github.com/andyscott) in [https://github.com/bazelbuild/rules_go/pull/3899](https://github.com/bazelbuild/rules_go/pull/3899) - \[nogo] match regexp againts relative paths by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3898](https://github.com/bazelbuild/rules_go/pull/3898) - Add `bazel_features` transitive `.bzl`s to `bzl_library` targets by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3903](https://github.com/bazelbuild/rules_go/pull/3903) - Add //go/private:polyfill_bazel_features.bzl to sources. by [@​spags-lacework](https://github.com/spags-lacework) in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - Reformat with buildifier by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3910](https://github.com/bazelbuild/rules_go/pull/3910) - GoLink action. Use -extar <ar path> if cc_toolchain provides ar path by [@​OparinE](https://github.com/OparinE) in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) - Mark `go_sdk` extension as `reproducible` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3911](https://github.com/bazelbuild/rules_go/pull/3911) - Don't ignore the return value of runfiles.merge_all() by [@​EdSchouten](https://github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3918](https://github.com/bazelbuild/rules_go/pull/3918) - Use Gazelle's `go_env` in `@rules_go//go` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3909](https://github.com/bazelbuild/rules_go/pull/3909) - Setting test.timeout according to TEST_TIMEOUT by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3920](https://github.com/bazelbuild/rules_go/pull/3920) - prepare rules_go v 0.47 by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3923](https://github.com/bazelbuild/rules_go/pull/3923) #### New Contributors - [@​Strum355](https://github.com/Strum355) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - [@​sgowroji](https://github.com/sgowroji) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - [@​mattyclarkson](https://github.com/mattyclarkson) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - [@​scaiper](https://github.com/scaiper) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - [@​dcarney](https://github.com/dcarney) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - [@​mmrath](https://github.com/mmrath) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - [@​hauserx](https://github.com/hauserx) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - [@​baizhenyu](https://github.com/baizhenyu) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - [@​c-mita](https://github.com/c-mita) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - [@​spags-lacework](https://github.com/spags-lacework) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - [@​OparinE](https://github.com/OparinE) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) **Full Changelog**: bazel-contrib/rules_go@v0.46.0...v0.47.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/kreempuff/rules_unreal_engine). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io_bazel_rules_go](https://github.com/bazelbuild/rules_go) | http_archive | minor | `v0.46.0` -> `v0.47.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_go (io_bazel_rules_go)</summary> ### [`v0.47.0`](https://github.com/bazelbuild/rules_go/releases/tag/v0.47.0) [Compare Source](https://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://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3861](https://github.com/bazelbuild/rules_go/pull/3861) - Update toolchains_llvm URL and hash by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3864](https://github.com/bazelbuild/rules_go/pull/3864) - pass correct (non `"main"`) importpath to nogo for `main` package by [@​Strum355](https://github.com/Strum355) in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - Make exec cfg check for `//go` stricter by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3867](https://github.com/bazelbuild/rules_go/pull/3867) - Fixes the Bazel CI error by [@​sgowroji](https://github.com/sgowroji) in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - \[go_library] add .x file to declared output files in DefaultInfo by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3866](https://github.com/bazelbuild/rules_go/pull/3866) - Remove Latin-1 workaround on Bazel 6.4.0+ by [@​mattyclarkson](https://github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - fix sdk download for common execution platforms by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - Bump Go version to 1.21.8 by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3880](https://github.com/bazelbuild/rules_go/pull/3880) - Update README.rst to point to correct GH release tags by [@​dcarney](https://github.com/dcarney) in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - Update bzlmod.md fix typo by [@​mmrath](https://github.com/mmrath) in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - Cleanup temp dirs in GoToolchainBinaryBuild by [@​hauserx](https://github.com/hauserx) in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - gopackagesdriver: move and simplify test by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3856](https://github.com/bazelbuild/rules_go/pull/3856) - Support Go version schema change since 1.21 by [@​baizhenyu](https://github.com/baizhenyu) in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - gopackagesdriver: fix version check with Bazel development versions by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3893](https://github.com/bazelbuild/rules_go/pull/3893) - Revert "improving logging for subcommand failure ([#​3824](https://github.com/bazelbuild/rules_go/issues/3824))" by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3892](https://github.com/bazelbuild/rules_go/pull/3892) - Replace instances of to_json() method with json.encode(..) by [@​c-mita](https://github.com/c-mita) in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - add nogo parsing support for nogo explanations by [@​andyscott](https://github.com/andyscott) in [https://github.com/bazelbuild/rules_go/pull/3899](https://github.com/bazelbuild/rules_go/pull/3899) - \[nogo] match regexp againts relative paths by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3898](https://github.com/bazelbuild/rules_go/pull/3898) - Add `bazel_features` transitive `.bzl`s to `bzl_library` targets by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3903](https://github.com/bazelbuild/rules_go/pull/3903) - Add //go/private:polyfill_bazel_features.bzl to sources. by [@​spags-lacework](https://github.com/spags-lacework) in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - Reformat with buildifier by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3910](https://github.com/bazelbuild/rules_go/pull/3910) - GoLink action. Use -extar <ar path> if cc_toolchain provides ar path by [@​OparinE](https://github.com/OparinE) in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) - Mark `go_sdk` extension as `reproducible` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3911](https://github.com/bazelbuild/rules_go/pull/3911) - Don't ignore the return value of runfiles.merge_all() by [@​EdSchouten](https://github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3918](https://github.com/bazelbuild/rules_go/pull/3918) - Use Gazelle's `go_env` in `@rules_go//go` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3909](https://github.com/bazelbuild/rules_go/pull/3909) - Setting test.timeout according to TEST_TIMEOUT by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3920](https://github.com/bazelbuild/rules_go/pull/3920) - prepare rules_go v 0.47 by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3923](https://github.com/bazelbuild/rules_go/pull/3923) #### New Contributors - [@​Strum355](https://github.com/Strum355) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - [@​sgowroji](https://github.com/sgowroji) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - [@​mattyclarkson](https://github.com/mattyclarkson) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - [@​scaiper](https://github.com/scaiper) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - [@​dcarney](https://github.com/dcarney) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - [@​mmrath](https://github.com/mmrath) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - [@​hauserx](https://github.com/hauserx) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - [@​baizhenyu](https://github.com/baizhenyu) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - [@​c-mita](https://github.com/c-mita) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - [@​spags-lacework](https://github.com/spags-lacework) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - [@​OparinE](https://github.com/OparinE) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) **Full Changelog**: bazel-contrib/rules_go@v0.46.0...v0.47.0 </details> --- ### 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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDkuNCIsInVwZGF0ZWRJblZlciI6IjM2LjEwOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io_bazel_rules_go](https://github.com/bazelbuild/rules_go) | http_archive | minor | `v0.46.0` -> `v0.47.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_go (io_bazel_rules_go)</summary> ### [`v0.47.0`](https://github.com/bazelbuild/rules_go/releases/tag/v0.47.0) [Compare Source](https://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://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3861](https://github.com/bazelbuild/rules_go/pull/3861) - Update toolchains_llvm URL and hash by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3864](https://github.com/bazelbuild/rules_go/pull/3864) - pass correct (non `"main"`) importpath to nogo for `main` package by [@​Strum355](https://github.com/Strum355) in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - Make exec cfg check for `//go` stricter by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3867](https://github.com/bazelbuild/rules_go/pull/3867) - Fixes the Bazel CI error by [@​sgowroji](https://github.com/sgowroji) in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - \[go_library] add .x file to declared output files in DefaultInfo by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3866](https://github.com/bazelbuild/rules_go/pull/3866) - Remove Latin-1 workaround on Bazel 6.4.0+ by [@​mattyclarkson](https://github.com/mattyclarkson) in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - fix sdk download for common execution platforms by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - Bump Go version to 1.21.8 by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3880](https://github.com/bazelbuild/rules_go/pull/3880) - Update README.rst to point to correct GH release tags by [@​dcarney](https://github.com/dcarney) in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - Update bzlmod.md fix typo by [@​mmrath](https://github.com/mmrath) in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - Cleanup temp dirs in GoToolchainBinaryBuild by [@​hauserx](https://github.com/hauserx) in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - gopackagesdriver: move and simplify test by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3856](https://github.com/bazelbuild/rules_go/pull/3856) - Support Go version schema change since 1.21 by [@​baizhenyu](https://github.com/baizhenyu) in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - gopackagesdriver: fix version check with Bazel development versions by [@​jayconrod](https://github.com/jayconrod) in [https://github.com/bazelbuild/rules_go/pull/3893](https://github.com/bazelbuild/rules_go/pull/3893) - Revert "improving logging for subcommand failure ([#​3824](https://github.com/bazelbuild/rules_go/issues/3824))" by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3892](https://github.com/bazelbuild/rules_go/pull/3892) - Replace instances of to_json() method with json.encode(..) by [@​c-mita](https://github.com/c-mita) in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - add nogo parsing support for nogo explanations by [@​andyscott](https://github.com/andyscott) in [https://github.com/bazelbuild/rules_go/pull/3899](https://github.com/bazelbuild/rules_go/pull/3899) - \[nogo] match regexp againts relative paths by [@​scaiper](https://github.com/scaiper) in [https://github.com/bazelbuild/rules_go/pull/3898](https://github.com/bazelbuild/rules_go/pull/3898) - Add `bazel_features` transitive `.bzl`s to `bzl_library` targets by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3903](https://github.com/bazelbuild/rules_go/pull/3903) - Add //go/private:polyfill_bazel_features.bzl to sources. by [@​spags-lacework](https://github.com/spags-lacework) in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - Reformat with buildifier by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3910](https://github.com/bazelbuild/rules_go/pull/3910) - GoLink action. Use -extar <ar path> if cc_toolchain provides ar path by [@​OparinE](https://github.com/OparinE) in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) - Mark `go_sdk` extension as `reproducible` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3911](https://github.com/bazelbuild/rules_go/pull/3911) - Don't ignore the return value of runfiles.merge_all() by [@​EdSchouten](https://github.com/EdSchouten) in [https://github.com/bazelbuild/rules_go/pull/3918](https://github.com/bazelbuild/rules_go/pull/3918) - Use Gazelle's `go_env` in `@rules_go//go` by [@​fmeum](https://github.com/fmeum) in [https://github.com/bazelbuild/rules_go/pull/3909](https://github.com/bazelbuild/rules_go/pull/3909) - Setting test.timeout according to TEST_TIMEOUT by [@​linzhp](https://github.com/linzhp) in [https://github.com/bazelbuild/rules_go/pull/3920](https://github.com/bazelbuild/rules_go/pull/3920) - prepare rules_go v 0.47 by [@​tyler-french](https://github.com/tyler-french) in [https://github.com/bazelbuild/rules_go/pull/3923](https://github.com/bazelbuild/rules_go/pull/3923) #### New Contributors - [@​Strum355](https://github.com/Strum355) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3863](https://github.com/bazelbuild/rules_go/pull/3863) - [@​sgowroji](https://github.com/sgowroji) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3869](https://github.com/bazelbuild/rules_go/pull/3869) - [@​mattyclarkson](https://github.com/mattyclarkson) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3872](https://github.com/bazelbuild/rules_go/pull/3872) - [@​scaiper](https://github.com/scaiper) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3874](https://github.com/bazelbuild/rules_go/pull/3874) - [@​dcarney](https://github.com/dcarney) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3881](https://github.com/bazelbuild/rules_go/pull/3881) - [@​mmrath](https://github.com/mmrath) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3882](https://github.com/bazelbuild/rules_go/pull/3882) - [@​hauserx](https://github.com/hauserx) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3885](https://github.com/bazelbuild/rules_go/pull/3885) - [@​baizhenyu](https://github.com/baizhenyu) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3891](https://github.com/bazelbuild/rules_go/pull/3891) - [@​c-mita](https://github.com/c-mita) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3896](https://github.com/bazelbuild/rules_go/pull/3896) - [@​spags-lacework](https://github.com/spags-lacework) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3908](https://github.com/bazelbuild/rules_go/pull/3908) - [@​OparinE](https://github.com/OparinE) made their first contribution in [https://github.com/bazelbuild/rules_go/pull/3916](https://github.com/bazelbuild/rules_go/pull/3916) **Full Changelog**: bazel-contrib/rules_go@v0.46.0...v0.47.0 </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/bazel-contrib/toolchains_llvm). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
What type of PR is this?
What does this PR do? Why is it needed?
Moved //tests/integration/gopackagesdriver:gopackagesdriver_test to //go/tools/gopackagesdriver:gopackagesdriver_test.
Previously the test invoked gopackagesdriver with 'bazel run' in a temporary workspace, which forced Bazel to build it, slowing down the test significantly, especially on Windows. Now, the test embeds the gopackagesdriver library and invokes it directly. The driver still runs in a temporary workspace and still needs to invoke bazel, so the test is still slow, but it's faster than before.
Also, a number of other improvements:
Which issues(s) does this PR fix?
For #3805
Prerequisite for test in #3806
Other notes for review