prysm-pulse/third_party/io_bazel_rules_go_test.patch
Raul Jordan 7a3df7642b
Update Prysm to Go 1.18 (#10576)
* update go

* Update rules_go patch

* Update gazelle

* begin building

* qtls

* gaz

Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2022-04-28 13:07:29 -04:00

25 lines
795 B
Diff

diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl
index a88ebcc9..f23b0dfb 100644
--- a/go/private/rules/test.bzl
+++ b/go/private/rules/test.bzl
@@ -185,7 +185,7 @@ def _go_test_impl(ctx):
testing.TestEnvironment(env),
]
-_go_test_kwargs = {
+go_test_kwargs = {
"implementation": _go_test_impl,
"attrs": {
"data": attr.label_list(
@@ -439,8 +439,8 @@ _go_test_kwargs = {
""",
}
-go_test = rule(**_go_test_kwargs)
-go_transition_test = go_transition_rule(**_go_test_kwargs)
+go_test = rule(**go_test_kwargs)
+go_transition_test = go_transition_rule(**go_test_kwargs)
def _recompile_external_deps(go, external_source, internal_archive, library_labels):
"""Recompiles some archives in order to split internal and external tests.