Skip to content

Commit

Permalink
Release rules_go v0.30.0 (#3049)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamyDev committed Jan 24, 2022
1 parent bd0dd3f commit b21d9f4
Show file tree
Hide file tree
Showing 16 changed files with 47,648 additions and 31,692 deletions.
2 changes: 1 addition & 1 deletion go/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ TOOLS_NOGO = [

# Current version or next version to be tagged. Gazelle and other tools may
# check this to determine compatibility.
RULES_GO_VERSION = "0.29.0"
RULES_GO_VERSION = "0.30.0"

declare_toolchains = _declare_toolchains
go_context = _go_context
Expand Down
46 changes: 23 additions & 23 deletions go/private/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "platforms",
# 0.0.4, latest as of 2021-10-06
# 0.0.4, latest as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.4/platforms-0.0.4.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.4/platforms-0.0.4.tar.gz",
Expand All @@ -61,7 +61,7 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "bazel_skylib",
# 1.1.1, latest as of 2021-10-06
# 1.1.1, latest as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
Expand All @@ -75,7 +75,7 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "org_golang_x_tools",
# v0.1.8, latest as of 2021-12-15
# v0.1.8, latest as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/golang/tools/archive/v0.1.8.zip",
"https://github.com/golang/tools/archive/v0.1.8.zip",
Expand All @@ -97,13 +97,13 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "org_golang_x_sys",
# master, as of 2021-10-06
# master, as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/golang/sys/archive/2c5d950f24efcc95bc256be158532a2eee20542f.zip",
"https://github.com/golang/sys/archive/2c5d950f24efcc95bc256be158532a2eee20542f.zip",
"https://mirror.bazel.build/github.com/golang/sys/archive/da31bd327af904dd4721b4eefa7c505bb3afd214.zip",
"https://github.com/golang/sys/archive/da31bd327af904dd4721b4eefa7c505bb3afd214.zip",
],
sha256 = "8cbf3990ff9d10ab3dab1322b0895d37e1563839b47c778db835a8fd0fa8fb13",
strip_prefix = "sys-2c5d950f24efcc95bc256be158532a2eee20542f",
sha256 = "8dfad886e537e8d2b800d58d3ac279630895964fe43b68e9a29b231007562553",
strip_prefix = "sys-da31bd327af904dd4721b4eefa7c505bb3afd214",
patches = [
# releaser:patch-cmd gazelle -repo_root . -go_prefix golang.org/x/sys -go_naming_convention import_alias
Label("//third_party:org_golang_x_sys-gazelle.patch"),
Expand All @@ -116,7 +116,7 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "org_golang_x_xerrors",
# master, as of 2021-10-06
# master, as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/golang/xerrors/archive/5ec99f83aff198f5fbd629d6c8d8eb38a04218ca.zip",
"https://github.com/golang/xerrors/archive/5ec99f83aff198f5fbd629d6c8d8eb38a04218ca.zip",
Expand Down Expand Up @@ -152,7 +152,7 @@ def go_rules_dependencies():
http_archive,
name = "org_golang_google_protobuf",
sha256 = "a01b25899f598fbac3c2626376b74fc15229f009904c262658f8da1c1c392386",
# v1.27.1, latest as of 2021-10-06
# v1.27.1, latest as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf-go/archive/v1.27.1.zip",
"https://github.com/protocolbuffers/protobuf-go/archive/v1.27.1.zip",
Expand All @@ -174,7 +174,7 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "com_github_golang_protobuf",
# v1.5.2, latest as of 2021-10-06
# v1.5.2, latest as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/golang/protobuf/archive/v1.5.2.zip",
"https://github.com/golang/protobuf/archive/v1.5.2.zip",
Expand All @@ -194,7 +194,7 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "com_github_mwitkow_go_proto_validators",
# v0.3.2, latest as of 2021-10-06
# v0.3.2, latest as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/mwitkow/go-proto-validators/archive/v0.3.2.zip",
"https://github.com/mwitkow/go-proto-validators/archive/v0.3.2.zip",
Expand All @@ -208,7 +208,7 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "com_github_gogo_protobuf",
# v1.3.2, latest as of 2021-10-06
# v1.3.2, latest as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/gogo/protobuf/archive/v1.3.2.zip",
"https://github.com/gogo/protobuf/archive/v1.3.2.zip",
Expand All @@ -235,13 +235,13 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "org_golang_google_genproto",
# master, as of 2021-10-06
# main, as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/c76a74d43a8eff9efc7832aa92c6a61ce42c8101.zip",
"https://github.com/googleapis/go-genproto/archive/c76a74d43a8eff9efc7832aa92c6a61ce42c8101.zip",
"https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/00ab72f36ad551e26984e123374ceffe52cff70b.zip",
"https://github.com/googleapis/go-genproto/archive/00ab72f36ad551e26984e123374ceffe52cff70b.zip",
],
sha256 = "6d5db6630cc481f8e843dd213ac335b8b0231ef815775f39eea05e39057261a8",
strip_prefix = "go-genproto-c76a74d43a8eff9efc7832aa92c6a61ce42c8101",
sha256 = "bbcb98ae8bddd90974784d9a8b0088593258532546bbae90bb674df69cf87877",
strip_prefix = "go-genproto-00ab72f36ad551e26984e123374ceffe52cff70b",
patches = [
# releaser:patch-cmd gazelle -repo_root . -go_prefix google.golang.org/genproto -go_naming_convention import_alias -proto disable_global
Label("//third_party:org_golang_google_genproto-gazelle.patch"),
Expand All @@ -258,13 +258,13 @@ def go_rules_dependencies():
_maybe(
http_archive,
name = "go_googleapis",
# master, as of 2021-10-06
# master, as of 2022-01-24
urls = [
"https://mirror.bazel.build/github.com/googleapis/googleapis/archive/409e134ffaacc243052b08e6fb8e2d458014ed37.zip",
"https://github.com/googleapis/googleapis/archive/409e134ffaacc243052b08e6fb8e2d458014ed37.zip",
"https://mirror.bazel.build/github.com/googleapis/googleapis/archive/d12b615374583712e7832c914d1fbef8c507f10f.zip",
"https://github.com/googleapis/googleapis/archive/d12b615374583712e7832c914d1fbef8c507f10f.zip",
],
sha256 = "a85c6a00e9cf0f004992ebea1d10688e3beea9f8e1a5a04ee53f367e72ee85af",
strip_prefix = "googleapis-409e134ffaacc243052b08e6fb8e2d458014ed37",
sha256 = "ad0a426b3cf0a8464c495627286c1cefdebefdabb96cc256aaeac9f501665cdd",
strip_prefix = "googleapis-d12b615374583712e7832c914d1fbef8c507f10f",
patches = [
# releaser:patch-cmd find . -name BUILD.bazel -delete
Label("//third_party:go_googleapis-deletebuild.patch"),
Expand Down
12 changes: 11 additions & 1 deletion tests/integration/popular_repos/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test_suite(
"@org_golang_x_sys//execabs:execabs_test",
"@org_golang_x_sys//internal/unsafeheader:unsafeheader_test",
"@org_golang_x_sys//plan9:plan9_test",
"@org_golang_x_sys//windows:windows_test",
"@org_golang_x_sys//unix/internal/mkmerge:mkmerge_test",
"@org_golang_x_sys//windows/registry:registry_test",
"@org_golang_x_sys//windows/svc:svc_test",
"@org_golang_x_sys//windows/svc/eventlog:eventlog_test",
Expand Down Expand Up @@ -165,8 +165,11 @@ test_suite(
"@org_golang_x_tools//cover:cover_test",
"@org_golang_x_tools//go/analysis:analysis_test",
"@org_golang_x_tools//go/analysis/internal/analysisflags:analysisflags_test",
"@org_golang_x_tools//go/analysis/passes/internal/analysisutil:analysisutil_test",
"@org_golang_x_tools//go/analysis/passes/usesgenerics:usesgenerics_test",
"@org_golang_x_tools//go/ast/astutil:astutil_test",
"@org_golang_x_tools//go/callgraph/static:static_test",
"@org_golang_x_tools//go/callgraph/vta/internal/trie:trie_test",
"@org_golang_x_tools//go/cfg:cfg_test",
"@org_golang_x_tools//go/types/objectpath:objectpath_test",
"@org_golang_x_tools//go/vcs:vcs_test",
Expand All @@ -183,11 +186,18 @@ test_suite(
"@org_golang_x_tools//internal/gopathwalk:gopathwalk_test",
"@org_golang_x_tools//internal/jsonrpc2:jsonrpc2_test",
"@org_golang_x_tools//internal/jsonrpc2/servertest:servertest_test",
"@org_golang_x_tools//internal/jsonrpc2_v2:jsonrpc2_v2_test",
"@org_golang_x_tools//internal/lsp/analysis/infertypeargs:infertypeargs_test",
"@org_golang_x_tools//internal/lsp/analysis/useany:useany_test",
"@org_golang_x_tools//internal/lsp/progress:progress_test",
"@org_golang_x_tools//internal/lsp/regtest:regtest_test",
"@org_golang_x_tools//internal/lsp/source/completion:completion_test",
"@org_golang_x_tools//internal/lsp/template:template_test",
"@org_golang_x_tools//internal/memoize:memoize_test",
"@org_golang_x_tools//internal/proxydir:proxydir_test",
"@org_golang_x_tools//internal/span:span_test",
"@org_golang_x_tools//internal/stack:stack_test",
"@org_golang_x_tools//internal/typeparams:typeparams_test",
"@org_golang_x_tools//playground/socket:socket_test",
"@org_golang_x_tools//txtar:txtar_test",
],
Expand Down
12 changes: 11 additions & 1 deletion tests/integration/popular_repos/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ This runs tests from the repository `golang.org/x/sys <https://golang.org/x/sys>
* @org_golang_x_sys//execabs:execabs_test
* @org_golang_x_sys//internal/unsafeheader:unsafeheader_test
* @org_golang_x_sys//plan9:plan9_test
* @org_golang_x_sys//windows:windows_test
* @org_golang_x_sys//unix/internal/mkmerge:mkmerge_test
* @org_golang_x_sys//windows/registry:registry_test
* @org_golang_x_sys//windows/svc:svc_test
* @org_golang_x_sys//windows/svc/eventlog:eventlog_test
Expand Down Expand Up @@ -164,8 +164,11 @@ This runs tests from the repository `golang.org/x/tools <https://golang.org/x/to
* @org_golang_x_tools//cover:cover_test
* @org_golang_x_tools//go/analysis:analysis_test
* @org_golang_x_tools//go/analysis/internal/analysisflags:analysisflags_test
* @org_golang_x_tools//go/analysis/passes/internal/analysisutil:analysisutil_test
* @org_golang_x_tools//go/analysis/passes/usesgenerics:usesgenerics_test
* @org_golang_x_tools//go/ast/astutil:astutil_test
* @org_golang_x_tools//go/callgraph/static:static_test
* @org_golang_x_tools//go/callgraph/vta/internal/trie:trie_test
* @org_golang_x_tools//go/cfg:cfg_test
* @org_golang_x_tools//go/types/objectpath:objectpath_test
* @org_golang_x_tools//go/vcs:vcs_test
Expand All @@ -182,11 +185,18 @@ This runs tests from the repository `golang.org/x/tools <https://golang.org/x/to
* @org_golang_x_tools//internal/gopathwalk:gopathwalk_test
* @org_golang_x_tools//internal/jsonrpc2:jsonrpc2_test
* @org_golang_x_tools//internal/jsonrpc2/servertest:servertest_test
* @org_golang_x_tools//internal/jsonrpc2_v2:jsonrpc2_v2_test
* @org_golang_x_tools//internal/lsp/analysis/infertypeargs:infertypeargs_test
* @org_golang_x_tools//internal/lsp/analysis/useany:useany_test
* @org_golang_x_tools//internal/lsp/progress:progress_test
* @org_golang_x_tools//internal/lsp/regtest:regtest_test
* @org_golang_x_tools//internal/lsp/source/completion:completion_test
* @org_golang_x_tools//internal/lsp/template:template_test
* @org_golang_x_tools//internal/memoize:memoize_test
* @org_golang_x_tools//internal/proxydir:proxydir_test
* @org_golang_x_tools//internal/span:span_test
* @org_golang_x_tools//internal/stack:stack_test
* @org_golang_x_tools//internal/typeparams:typeparams_test
* @org_golang_x_tools//playground/socket:socket_test
* @org_golang_x_tools//txtar:txtar_test

Expand Down
13 changes: 11 additions & 2 deletions tests/integration/popular_repos/popular_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
commit = "390168757d9c647283340d526204e3409d5903f3",
excludes = [
"unix:unix_test", # TestOpenByHandleAt reads source file.
"windows:windows_test", # Needs testdata directory
],
),

Expand Down Expand Up @@ -88,6 +89,7 @@
"cmd/callgraph:callgraph_test", # Needs testdata directory
"cmd/cover:cover_test", # Needs testdata directory
"cmd/fiximports:fiximports_test", # requires working GOROOT, not present in CI.
"cmd/file2fuzz:file2fuzz_test", # Requires working GOROOT, uses go build
"cmd/godoc:godoc_test", # TODO(#417)
"cmd/gorename:gorename_test", # TODO(#417)
"cmd/guru/testdata/src/referrers:referrers_test", # Not a real test
Expand Down Expand Up @@ -123,8 +125,10 @@
"go/analysis/passes/nilness:nilness_test", # Needs testdata directory
"go/analysis/passes/pkgfact:pkgfact_test", # requires go list
"go/analysis/passes/printf:printf_test", # Needs testdata directory
"go/analysis/passes/reflectvaluecompare:reflectvaluecompare_test", # Needs testdata directory
"go/analysis/passes/shadow:shadow_test", # Needs testdata directory
"go/analysis/passes/shift:shift_test", # Needs testdata directory
"go/analysis/passes/shift:shift_test", # Needs testdata director
"go/analysis/passes/sigchanyzer:sigchanyzer_test", # Needs testdata directory
"go/analysis/passes/sortslice:sortslice_test", # Needs 'go list'
"go/analysis/passes/stdmethods:stdmethods_test", # Needs testdata directory
"go/analysis/passes/stringintconv:stringintconv_test", # Needs 'go list'
Expand All @@ -133,16 +137,19 @@
"go/analysis/passes/tests/testdata/src/a:a_test", # Not a real test
"go/analysis/passes/tests/testdata/src/b_x_test:b_x_test_test", # Not a real test
"go/analysis/passes/tests/testdata/src/divergent:divergent_test", # Not a real test
"go/analysis/passes/tests/testdata/src/typeparams:typeparams_test", # Not a real test
"go/analysis/passes/tests:tests_test", # Needs testdata directory
"go/analysis/passes/unmarshal:unmarshal_test", # Needs go list
"go/analysis/passes/unreachable:unreachable_test", # Needs testdata directory
"go/analysis/passes/unsafeptr:unsafeptr_test", # Needs testdata directory
"go/analysis/passes/unusedresult:unusedresult_test", # Needs testdata directory
"go/analysis/passes/unusedwrite:unusedwrite_test", # Needs testdata directory
"go/analysis/unitchecker:unitchecker_test", # requires go vet
"go/ast/inspector:inspector_test", # requires GOROOT and GOPATH
"go/buildutil:buildutil_test", # Needs testdata directory
"go/callgraph/cha:cha_test", # Needs testdata directory
"go/callgraph/rta:rta_test", # Needs testdata directory
"go/callgraph/vta:vta_test", # Needs testdata directory
"go/expect:expect_test", # Needs testdata directory
"go/gccgoexportdata:gccgoexportdata_test", # Needs testdata directory
"go/gcexportdata:gcexportdata_test", # Needs testdata directory
Expand Down Expand Up @@ -175,6 +182,7 @@
"internal/lsp/analysis/unusedparams:unusedparams_test", # Needs go tool
"internal/lsp/cache:cache_test", # has additional deps
"internal/lsp/cmd:cmd_test", # panics?
"internal/lsp/command:command_test", # Needs go tool
"internal/lsp/diff/difftest:difftest_test", # has additional deps
"internal/lsp/diff/myers:myers_test", # has additional deps
"internal/lsp/diff:diff_test", # has additional deps
Expand All @@ -196,6 +204,7 @@
"internal/lsp/testdata/testy:testy_test", # is testdata
"internal/lsp/testdata/unimported:unimported_test", # is testdata
"internal/lsp/testdata/workspacesymbol/a:a_test", # is testdata
"internal/lsp/testdata/statements:statements_test", # is testdata
"present:present_test", # Needs goldmark
"refactor/eg:eg_test", # Needs testdata directory
"refactor/importgraph:importgraph_test", # TODO(#417)
Expand All @@ -222,7 +231,7 @@
excludes = [
"sumdb/tlog:tlog_test", # Needs network, not available on RBE
"zip:zip_test", # Needs vcs tools, not available on RBE
],
],
),
]

Expand Down
Loading

0 comments on commit b21d9f4

Please sign in to comment.