Add missing `go_link` exec group to more go_test (#4632)
Follow-up to https://github.com/bazel-contrib/rules_go/pull/4630 so
GoLink actions created by go_test targets receive the previously added
exec group
diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl
index d65b5ca..14bd384 100644
--- a/go/private/rules/test.bzl
+++ b/go/private/rules/test.bzl
@@ -192,6 +192,7 @@
gc_linkopts = test_gc_linkopts,
version_file = ctx.version_file,
info_file = ctx.info_file,
+ link_exec_group = "go_link",
)
env = {
@@ -494,6 +495,11 @@
"test": True,
"fragments": CGO_FRAGMENTS,
"toolchains": [GO_TOOLCHAIN] + CGO_TOOLCHAINS,
+ "exec_groups": {
+ "go_link": exec_group(
+ toolchains = [GO_TOOLCHAIN] + CGO_TOOLCHAINS,
+ ),
+ },
"doc": """This builds a set of tests that can be run with `bazel test`.
To run all tests in the workspace, and print output on failure (the