mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Update rules_go to v0.38.1 and go_version to 1.19.7 (#12055)
* Update rules_go to v0.38.1 * Bump go version --------- Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
a0ff5ff792
commit
81fbfceea8
@ -73,10 +73,10 @@ http_archive(
|
|||||||
# Expose internals of go_test for custom build transitions.
|
# Expose internals of go_test for custom build transitions.
|
||||||
"//third_party:io_bazel_rules_go_test.patch",
|
"//third_party:io_bazel_rules_go_test.patch",
|
||||||
],
|
],
|
||||||
sha256 = "ae013bf35bd23234d1dea46b079f1e05ba74ac0321423830119d3e787ec73483",
|
sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
|
||||||
urls = [
|
urls = [
|
||||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.0.zip",
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
|
||||||
"https://github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.0.zip",
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe
|
|||||||
go_rules_dependencies()
|
go_rules_dependencies()
|
||||||
|
|
||||||
go_register_toolchains(
|
go_register_toolchains(
|
||||||
go_version = "1.19.4",
|
go_version = "1.19.7",
|
||||||
nogo = "@//:nogo",
|
nogo = "@//:nogo",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -182,5 +182,11 @@
|
|||||||
".*_test\\.go": "Tests are ok (for now)",
|
".*_test\\.go": "Tests are ok (for now)",
|
||||||
"tools/analyzers/ineffassign/ineffassign\\.go": "3rd party code with a massive switch statement"
|
"tools/analyzers/ineffassign/ineffassign\\.go": "3rd party code with a massive switch statement"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"shift": {
|
||||||
|
"exclude_files": {
|
||||||
|
"external/.*": "Third party code",
|
||||||
|
"rules_go_work-.*": "Third party code"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
14
third_party/io_bazel_rules_go_test.patch
vendored
14
third_party/io_bazel_rules_go_test.patch
vendored
@ -1,22 +1,22 @@
|
|||||||
diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl
|
diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl
|
||||||
index 1dfd1555..eeffefca 100644
|
index 413a19da..b289f52f 100644
|
||||||
--- a/go/private/rules/test.bzl
|
--- a/go/private/rules/test.bzl
|
||||||
+++ b/go/private/rules/test.bzl
|
+++ b/go/private/rules/test.bzl
|
||||||
@@ -187,7 +187,7 @@ def _go_test_impl(ctx):
|
@@ -189,7 +189,7 @@ def _go_test_impl(ctx):
|
||||||
testing.TestEnvironment(env),
|
run_environment_info,
|
||||||
]
|
]
|
||||||
|
|
||||||
-_go_test_kwargs = {
|
-_go_test_kwargs = {
|
||||||
+go_test_kwargs = {
|
+go_test_kwargs = {
|
||||||
"implementation": _go_test_impl,
|
"implementation": _go_test_impl,
|
||||||
"attrs": {
|
"attrs": {
|
||||||
"data": attr.label_list(
|
"data": attr.label_list(
|
||||||
@@ -447,7 +447,7 @@ _go_test_kwargs = {
|
@@ -471,7 +471,7 @@ _go_test_kwargs = {
|
||||||
""",
|
""",
|
||||||
}
|
}
|
||||||
|
|
||||||
-go_test = rule(**_go_test_kwargs)
|
-go_test = rule(**_go_test_kwargs)
|
||||||
+go_test = rule(**go_test_kwargs)
|
+go_test = rule(**go_test_kwargs)
|
||||||
|
|
||||||
def _recompile_external_deps(go, external_source, internal_archive, library_labels):
|
def _recompile_external_deps(go, external_source, internal_archive, library_labels):
|
||||||
"""Recompiles some archives in order to split internal and external tests.
|
"""Recompiles some archives in order to split internal and external tests.
|
||||||
|
Loading…
Reference in New Issue
Block a user