mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
Bazel: minimal test build transitions (#9122)
* Add build transitions for minimal config based tests * respect existing gotags * clean up import * Add some commentary * gaz Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: rauljordan <raul@prysmaticlabs.com>
This commit is contained in:
24
third_party/io_bazel_rules_go_test.patch
vendored
Normal file
24
third_party/io_bazel_rules_go_test.patch
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl
|
||||
index a7936ca9..cbfc996a 100644
|
||||
--- a/go/private/rules/test.bzl
|
||||
+++ b/go/private/rules/test.bzl
|
||||
@@ -176,7 +176,7 @@ def _go_test_impl(ctx):
|
||||
),
|
||||
]
|
||||
|
||||
-_go_test_kwargs = {
|
||||
+go_test_kwargs = {
|
||||
"implementation": _go_test_impl,
|
||||
"attrs": {
|
||||
"data": attr.label_list(allow_files = True),
|
||||
@@ -213,8 +213,8 @@ _go_test_kwargs = {
|
||||
"toolchains": ["@io_bazel_rules_go//go:toolchain"],
|
||||
}
|
||||
|
||||
-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.
|
||||
Reference in New Issue
Block a user