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:
Preston Van Loon 2023-03-13 14:22:37 -05:00 committed by GitHub
parent a0ff5ff792
commit 81fbfceea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 11 deletions

View File

@ -73,10 +73,10 @@ http_archive(
# Expose internals of go_test for custom build transitions.
"//third_party:io_bazel_rules_go_test.patch",
],
sha256 = "ae013bf35bd23234d1dea46b079f1e05ba74ac0321423830119d3e787ec73483",
sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
urls = [
"https://mirror.bazel.build/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.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.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_register_toolchains(
go_version = "1.19.4",
go_version = "1.19.7",
nogo = "@//:nogo",
)

View File

@ -182,5 +182,11 @@
".*_test\\.go": "Tests are ok (for now)",
"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"
}
}
}

View File

@ -1,9 +1,9 @@
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
+++ b/go/private/rules/test.bzl
@@ -187,7 +187,7 @@ def _go_test_impl(ctx):
testing.TestEnvironment(env),
@@ -189,7 +189,7 @@ def _go_test_impl(ctx):
run_environment_info,
]
-_go_test_kwargs = {
@ -11,7 +11,7 @@ index 1dfd1555..eeffefca 100644
"implementation": _go_test_impl,
"attrs": {
"data": attr.label_list(
@@ -447,7 +447,7 @@ _go_test_kwargs = {
@@ -471,7 +471,7 @@ _go_test_kwargs = {
""",
}