Skip to content

Commit 4db717f

Browse files
author
Jay Conrod
authored
Update dependencies (bazel-contrib#2623)
All dependencies are updated to their most recent versions. The following two patches are deleted, since Gazelle now generates the targets they used to add. com_github_golang_protobuf-extras.patch org_golang_x_tools-extras.patch Fixes bazel-contrib#2615
1 parent 08b1edf commit 4db717f

17 files changed

+25328
-13528
lines changed

go/private/repositories.bzl

Lines changed: 56 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ load("//go/private:common.bzl", "MINIMUM_BAZEL_VERSION")
1818
load("//go/private:skylib/lib/versions.bzl", "versions")
1919
load("//go/private:nogo.bzl", "DEFAULT_NOGO", "go_register_nogo")
2020
load("//proto:gogo.bzl", "gogo_special_proto")
21-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
2221
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2322

2423
def go_rules_dependencies(is_rules_go = False):
@@ -45,13 +44,13 @@ def go_rules_dependencies(is_rules_go = False):
4544
_maybe(
4645
http_archive,
4746
name = "platforms",
48-
strip_prefix = "platforms-9ded0f9c3144258dad27ad84628845bcd7ca6fe6",
49-
# master, as of 2020-05-12
47+
strip_prefix = "platforms-681f1ee032566aa2d443cf0335d012925d9c58d4",
48+
# master, as of 2020-08-24
5049
urls = [
51-
"https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/9ded0f9c3144258dad27ad84628845bcd7ca6fe6.zip",
52-
"https://github.com/bazelbuild/platforms/archive/9ded0f9c3144258dad27ad84628845bcd7ca6fe6.zip",
50+
"https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/681f1ee032566aa2d443cf0335d012925d9c58d4.zip",
51+
"https://github.com/bazelbuild/platforms/archive/681f1ee032566aa2d443cf0335d012925d9c58d4.zip",
5352
],
54-
sha256 = "81394f5999413fcdfe918b254de3c3c0d606fbd436084b904e254b1603ab7616",
53+
sha256 = "ae95e4bfcd9f66e9dc73a92cee0107fede74163f788e3deefe00f3aaae75c431",
5554
)
5655

5756
# Needed by rules_go implementation and tests.
@@ -60,7 +59,7 @@ def go_rules_dependencies(is_rules_go = False):
6059
_maybe(
6160
http_archive,
6261
name = "bazel_skylib",
63-
# 1.0.2, latest as of 2020-05-12
62+
# 1.0.2, latest as of 2020-08-24
6463
urls = [
6564
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
6665
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
@@ -72,23 +71,19 @@ def go_rules_dependencies(is_rules_go = False):
7271
_maybe(
7372
http_archive,
7473
name = "org_golang_x_tools",
75-
# master, as of 2020-05-12
74+
# master, as of 2020-08-24
7675
urls = [
77-
"https://mirror.bazel.build/github.com/golang/tools/archive/2bc93b1c0c88b2406b967fcd19a623d1ff9ea0cd.zip",
78-
"https://github.com/golang/tools/archive/2bc93b1c0c88b2406b967fcd19a623d1ff9ea0cd.zip",
76+
"https://mirror.bazel.build/github.com/golang/tools/archive/c024452afbcdebb4a0fbe1bb0eaea0d2dbff835b.zip",
77+
"https://github.com/golang/tools/archive/c024452afbcdebb4a0fbe1bb0eaea0d2dbff835b.zip",
7978
],
80-
sha256 = "b05c5b5b9091a35ecb433227ea30aa75cb6b9d9409b308bc75d0975d4a291912",
81-
strip_prefix = "tools-2bc93b1c0c88b2406b967fcd19a623d1ff9ea0cd",
79+
sha256 = "5b330e3bd29a52c235648457e1aa899d948cb1eb90a8b5caa0ac882be75572db",
80+
strip_prefix = "tools-c024452afbcdebb4a0fbe1bb0eaea0d2dbff835b",
8281
patches = [
8382
# deletegopls removes the gopls subdirectory. It contains a nested
8483
# module with additional dependencies. It's not needed by rules_go.
8584
"@io_bazel_rules_go//third_party:org_golang_x_tools-deletegopls.patch",
86-
# gazelle args: -repo_root . -go_prefix golang.org/x/tools
85+
# gazelle args: -repo_root . -go_prefix golang.org/x/tools -go_naming_convention import_alias
8786
"@io_bazel_rules_go//third_party:org_golang_x_tools-gazelle.patch",
88-
# extras adds go_tool_library rules for packages under
89-
# go/analysis/passes and their dependencies. These are needed by
90-
# nogo.
91-
"@io_bazel_rules_go//third_party:org_golang_x_tools-extras.patch",
9287
],
9388
patch_args = ["-p1"],
9489
)
@@ -97,15 +92,15 @@ def go_rules_dependencies(is_rules_go = False):
9792
_maybe(
9893
http_archive,
9994
name = "org_golang_x_xerrors",
100-
# master, as of 2020-05-12
95+
# master, as of 2020-08-24
10196
urls = [
102-
"https://mirror.bazel.build/github.com/golang/xerrors/archive/9bdfabe68543c54f90421aeb9a60ef8061b5b544.zip",
103-
"https://github.com/golang/xerrors/archive/9bdfabe68543c54f90421aeb9a60ef8061b5b544.zip",
97+
"https://mirror.bazel.build/github.com/golang/xerrors/archive/5ec99f83aff198f5fbd629d6c8d8eb38a04218ca.zip",
98+
"https://github.com/golang/xerrors/archive/5ec99f83aff198f5fbd629d6c8d8eb38a04218ca.zip",
10499
],
105-
sha256 = "757fe99de4d23e10a3343e9790866211ecac0458c5268da43e664a5abeee27e3",
106-
strip_prefix = "xerrors-9bdfabe68543c54f90421aeb9a60ef8061b5b544",
100+
sha256 = "cd9de801daf63283be91a76d7f91e8a9541798c5c0e8bcfb7ee804b78a493b02",
101+
strip_prefix = "xerrors-5ec99f83aff198f5fbd629d6c8d8eb38a04218ca",
107102
patches = [
108-
# gazelle args: -repo_root -go_prefix golang.org/x/xerrors
103+
# gazelle args: -repo_root -go_prefix golang.org/x/xerrors -go_naming_convention import_alias
109104
"@io_bazel_rules_go//third_party:org_golang_x_xerrors-gazelle.patch",
110105
],
111106
patch_args = ["-p1"],
@@ -114,12 +109,15 @@ def go_rules_dependencies(is_rules_go = False):
114109
# Needed for additional targets declared around binaries with c-archive
115110
# and c-shared link modes.
116111
_maybe(
117-
git_repository,
112+
http_archive,
118113
name = "rules_cc",
119-
remote = "https://github.com/bazelbuild/rules_cc",
120-
# master, as of 2020-05-21
121-
commit = "8c31dd406cf17611d7962bee4680cbc4360219ed",
122-
shallow_since = "1588944954 -0700",
114+
# master, as of 2020-08-24
115+
urls = [
116+
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/02becfef8bc97bda4f9bb64e153f1b0671aec4ba.zip",
117+
"https://github.com/bazelbuild/rules_cc/archive/02becfef8bc97bda4f9bb64e153f1b0671aec4ba.zip",
118+
],
119+
sha256 = "fa42eade3cad9190c2a6286a6213f07f1a83d26d9f082d56f526d014c6ea7444",
120+
strip_prefix = "rules_cc-02becfef8bc97bda4f9bb64e153f1b0671aec4ba",
123121
)
124122

125123
# Proto dependencies
@@ -142,15 +140,15 @@ def go_rules_dependencies(is_rules_go = False):
142140
_maybe(
143141
http_archive,
144142
name = "org_golang_google_protobuf",
145-
sha256 = "7820cd724e3fdcfe322ed85420662cc21104b901af39a0e505e5059a3cb45a68",
146-
# v1.22.0, latest as of 2020-05-12
143+
sha256 = "62992b0f5864aee2077a6cffa57a2d2bd30e7af4b6745eebd816dcde3526002f",
144+
# v1.25.0, latest as of 2020-08-24
147145
urls = [
148-
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf-go/archive/v1.22.0.zip",
149-
"https://github.com/protocolbuffers/protobuf-go/archive/v1.22.0.zip",
146+
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf-go/archive/v1.25.0.zip",
147+
"https://github.com/protocolbuffers/protobuf-go/archive/v1.25.0.zip",
150148
],
151-
strip_prefix = "protobuf-go-1.22.0",
149+
strip_prefix = "protobuf-go-1.25.0",
152150
patches = [
153-
# gazelle args: -repo_root . -go_prefix google.golang.org/protobuf -proto disable_global
151+
# gazelle args: -repo_root . -go_prefix google.golang.org/protobuf -go_naming_convention import_alias -proto disable_global
154152
"@io_bazel_rules_go//third_party:org_golang_google_protobuf-gazelle.patch",
155153
],
156154
patch_args = ["-p1"],
@@ -164,18 +162,16 @@ def go_rules_dependencies(is_rules_go = False):
164162
_maybe(
165163
http_archive,
166164
name = "com_github_golang_protobuf",
167-
# v1.4.1, latest as of 2020-05-12
165+
# v1.4.2, latest as of 2020-08-24
168166
urls = [
169-
"https://mirror.bazel.build/github.com/golang/protobuf/archive/v1.4.1.zip",
170-
"https://github.com/golang/protobuf/archive/v1.4.1.zip",
167+
"https://mirror.bazel.build/github.com/golang/protobuf/archive/v1.4.2.zip",
168+
"https://github.com/golang/protobuf/archive/v1.4.2.zip",
171169
],
172-
sha256 = "7b6e8ed38df65e08a4446aa09d3596b2cb56f279d8a813a3c491542b790f990d",
173-
strip_prefix = "protobuf-1.4.1",
170+
sha256 = "d661b447b6780ab0efd22011b963459dde08ae1f7fa782ab48809a66dcfd7c4c",
171+
strip_prefix = "protobuf-1.4.2",
174172
patches = [
175-
# gazelle args: -repo_root . -go_prefix github.com/golang/protobuf -proto disable_global
173+
# gazelle args: -repo_root . -go_prefix github.com/golang/protobuf -go_naming_convention import_alias -proto disable_global
176174
"@io_bazel_rules_go//third_party:com_github_golang_protobuf-gazelle.patch",
177-
# additional targets may depend on generated code for well known types
178-
"@io_bazel_rules_go//third_party:com_github_golang_protobuf-extras.patch",
179175
],
180176
patch_args = ["-p1"],
181177
)
@@ -185,28 +181,28 @@ def go_rules_dependencies(is_rules_go = False):
185181
_maybe(
186182
http_archive,
187183
name = "com_github_mwitkow_go_proto_validators",
188-
# v0.3.1, latest as of 2020-08-11
184+
# v0.3.2, latest as of 2020-08-11
189185
urls = [
190-
"https://mirror.bazel.build/github.com/mwitkow/go-proto-validators/archive/v0.3.1.zip",
191-
"https://github.com/mwitkow/go-proto-validators/archive/v0.3.1.zip",
186+
"https://mirror.bazel.build/github.com/mwitkow/go-proto-validators/archive/v0.3.2.zip",
187+
"https://github.com/mwitkow/go-proto-validators/archive/v0.3.2.zip",
192188
],
193-
sha256 = "eb8ed7900990031bb5d2c8c8f621532ae723d4c6f8ba709667804c4795589e9e",
194-
strip_prefix = "go-proto-validators-0.3.1",
189+
sha256 = "d8697f05a2f0eaeb65261b480e1e6035301892d9fc07ed945622f41b12a68142",
190+
strip_prefix = "go-proto-validators-0.3.2",
195191
# Bazel support added in v0.3.0, so no patches needed.
196192
)
197193

198194
_maybe(
199195
http_archive,
200196
name = "com_github_gogo_protobuf",
201-
# v1.3.1, latest as of 2020-05-21
197+
# v1.3.1, latest as of 2020-08-24
202198
urls = [
203199
"https://mirror.bazel.build/github.com/gogo/protobuf/archive/v1.3.1.zip",
204200
"https://github.com/gogo/protobuf/archive/v1.3.1.zip",
205201
],
206202
sha256 = "2056a39c922c7315530fc5b7a6ce10cc83b58c844388c9b2e903a0d8867a8b66",
207203
strip_prefix = "protobuf-1.3.1",
208204
patches = [
209-
# gazelle args: -repo_root . -go_prefix github.com/gogo/protobuf -proto legacy
205+
# gazelle args: -repo_root . -go_prefix github.com/gogo/protobuf -go_naming_convention import_alias -proto legacy
210206
"@io_bazel_rules_go//third_party:com_github_gogo_protobuf-gazelle.patch",
211207
],
212208
patch_args = ["-p1"],
@@ -224,15 +220,15 @@ def go_rules_dependencies(is_rules_go = False):
224220
_maybe(
225221
http_archive,
226222
name = "org_golang_google_genproto",
227-
# master, as of 2020-05-21
223+
# master, as of 2020-08-24
228224
urls = [
229-
"https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/f5ebc3bea3804948c8feb1e2b62323d73add1083.zip",
230-
"https://github.com/googleapis/go-genproto/archive/f5ebc3bea3804948c8feb1e2b62323d73add1083.zip",
225+
"https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/f69a88009b70a94c67e3910bf1663f5df9fbfc6d.zip",
226+
"https://github.com/googleapis/go-genproto/archive/f69a88009b70a94c67e3910bf1663f5df9fbfc6d.zip",
231227
],
232-
sha256 = "e056e969e0dce308a28ff6f626fb4b0006fafc3fd6f300e042f14938106ce386",
233-
strip_prefix = "go-genproto-f5ebc3bea3804948c8feb1e2b62323d73add1083",
228+
sha256 = "22d99299278eb992d27a426350c290dfd272818104d02f244162127886ba25d7",
229+
strip_prefix = "go-genproto-f69a88009b70a94c67e3910bf1663f5df9fbfc6d",
234230
patches = [
235-
# gazelle args: -repo_root . -go_prefix google.golang.org/genproto -proto disable_global
231+
# gazelle args: -repo_root . -go_prefix google.golang.org/genproto -go_naming_convention import_alias -proto disable_global
236232
"@io_bazel_rules_go//third_party:org_golang_google_genproto-gazelle.patch",
237233
],
238234
patch_args = ["-p1"],
@@ -246,13 +242,13 @@ def go_rules_dependencies(is_rules_go = False):
246242
_maybe(
247243
http_archive,
248244
name = "go_googleapis",
249-
# master, as of 2020-05-21
245+
# master, as of 2020-08-24
250246
urls = [
251-
"https://mirror.bazel.build/github.com/googleapis/googleapis/archive/bf17ae5fd93929beb44ac4c6b04f5088c3ee4a02.zip",
252-
"https://github.com/googleapis/googleapis/archive/bf17ae5fd93929beb44ac4c6b04f5088c3ee4a02.zip",
247+
"https://mirror.bazel.build/github.com/googleapis/googleapis/archive/079e09a64813291f71759d0e1b5f14b0794dc345.zip",
248+
"https://github.com/googleapis/googleapis/archive/079e09a64813291f71759d0e1b5f14b0794dc345.zip",
253249
],
254-
sha256 = "56868d9399a0576a2e01ce524e64477cd58ce0bf9ee298490482d1a618b8d11a",
255-
strip_prefix = "googleapis-bf17ae5fd93929beb44ac4c6b04f5088c3ee4a02",
250+
sha256 = "bba8988a57dc1d259d8e032f3858b52e9708fb863cd378322e703c79582bd064",
251+
strip_prefix = "googleapis-079e09a64813291f71759d0e1b5f14b0794dc345",
256252
patches = [
257253
# find . -name BUILD.bazel -delete
258254
"@io_bazel_rules_go//third_party:go_googleapis-deletebuild.patch",

tests/integration/popular_repos/BUILD.bazel

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -144,38 +144,38 @@ test_suite(
144144
test_suite(
145145
name = "org_golang_x_tools",
146146
tests = [
147-
"@org_golang_x_tools//benchmark/parse:go_default_test",
148-
"@org_golang_x_tools//cmd/benchcmp:go_default_test",
149-
"@org_golang_x_tools//cmd/digraph:go_default_test",
150-
"@org_golang_x_tools//cmd/getgo:go_default_test",
151-
"@org_golang_x_tools//cmd/go-contrib-init:go_default_test",
152-
"@org_golang_x_tools//cmd/splitdwarf/internal/macho:go_default_test",
153-
"@org_golang_x_tools//cover:go_default_test",
154-
"@org_golang_x_tools//go/analysis/internal/analysisflags:go_default_test",
155-
"@org_golang_x_tools//go/ast/astutil:go_default_test",
156-
"@org_golang_x_tools//go/callgraph/static:go_default_test",
157-
"@org_golang_x_tools//go/cfg:go_default_test",
158-
"@org_golang_x_tools//go/types/objectpath:go_default_test",
159-
"@org_golang_x_tools//go/vcs:go_default_test",
160-
"@org_golang_x_tools//godoc/redirect:go_default_test",
161-
"@org_golang_x_tools//godoc/vfs:go_default_test",
162-
"@org_golang_x_tools//godoc/vfs/gatefs:go_default_test",
163-
"@org_golang_x_tools//godoc/vfs/mapfs:go_default_test",
164-
"@org_golang_x_tools//internal/event:go_default_test",
165-
"@org_golang_x_tools//internal/event/export:go_default_test",
166-
"@org_golang_x_tools//internal/event/export/ocagent:go_default_test",
167-
"@org_golang_x_tools//internal/event/export/ocagent/wire:go_default_test",
168-
"@org_golang_x_tools//internal/event/label:go_default_test",
169-
"@org_golang_x_tools//internal/fastwalk:go_default_test",
170-
"@org_golang_x_tools//internal/gopathwalk:go_default_test",
171-
"@org_golang_x_tools//internal/jsonrpc2:go_default_test",
172-
"@org_golang_x_tools//internal/jsonrpc2/servertest:go_default_test",
173-
"@org_golang_x_tools//internal/lsp/debug:go_default_test",
174-
"@org_golang_x_tools//internal/memoize:go_default_test",
175-
"@org_golang_x_tools//internal/proxydir:go_default_test",
176-
"@org_golang_x_tools//internal/span:go_default_test",
177-
"@org_golang_x_tools//playground/socket:go_default_test",
178-
"@org_golang_x_tools//txtar:go_default_test",
147+
"@org_golang_x_tools//benchmark/parse:parse_test",
148+
"@org_golang_x_tools//cmd/benchcmp:benchcmp_test",
149+
"@org_golang_x_tools//cmd/digraph:digraph_test",
150+
"@org_golang_x_tools//cmd/getgo:getgo_test",
151+
"@org_golang_x_tools//cmd/go-contrib-init:go-contrib-init_test",
152+
"@org_golang_x_tools//cmd/splitdwarf/internal/macho:macho_test",
153+
"@org_golang_x_tools//cover:cover_test",
154+
"@org_golang_x_tools//go/analysis/internal/analysisflags:analysisflags_test",
155+
"@org_golang_x_tools//go/ast/astutil:astutil_test",
156+
"@org_golang_x_tools//go/callgraph/static:static_test",
157+
"@org_golang_x_tools//go/cfg:cfg_test",
158+
"@org_golang_x_tools//go/types/objectpath:objectpath_test",
159+
"@org_golang_x_tools//go/vcs:vcs_test",
160+
"@org_golang_x_tools//godoc/redirect:redirect_test",
161+
"@org_golang_x_tools//godoc/vfs:vfs_test",
162+
"@org_golang_x_tools//godoc/vfs/gatefs:gatefs_test",
163+
"@org_golang_x_tools//godoc/vfs/mapfs:mapfs_test",
164+
"@org_golang_x_tools//internal/event:event_test",
165+
"@org_golang_x_tools//internal/event/export:export_test",
166+
"@org_golang_x_tools//internal/event/export/ocagent:ocagent_test",
167+
"@org_golang_x_tools//internal/event/export/ocagent/wire:wire_test",
168+
"@org_golang_x_tools//internal/event/label:label_test",
169+
"@org_golang_x_tools//internal/fastwalk:fastwalk_test",
170+
"@org_golang_x_tools//internal/gopathwalk:gopathwalk_test",
171+
"@org_golang_x_tools//internal/jsonrpc2:jsonrpc2_test",
172+
"@org_golang_x_tools//internal/jsonrpc2/servertest:servertest_test",
173+
"@org_golang_x_tools//internal/memoize:memoize_test",
174+
"@org_golang_x_tools//internal/proxydir:proxydir_test",
175+
"@org_golang_x_tools//internal/span:span_test",
176+
"@org_golang_x_tools//internal/stack:stack_test",
177+
"@org_golang_x_tools//playground/socket:socket_test",
178+
"@org_golang_x_tools//txtar:txtar_test",
179179
],
180180
)
181181

@@ -195,3 +195,16 @@ test_suite(
195195
"@org_golang_x_sync//syncmap:go_default_test",
196196
],
197197
)
198+
199+
test_suite(
200+
name = "org_golang_x_mod",
201+
tests = [
202+
"@org_golang_x_mod//modfile:go_default_test",
203+
"@org_golang_x_mod//module:go_default_test",
204+
"@org_golang_x_mod//semver:go_default_test",
205+
"@org_golang_x_mod//sumdb:go_default_test",
206+
"@org_golang_x_mod//sumdb/dirhash:go_default_test",
207+
"@org_golang_x_mod//sumdb/note:go_default_test",
208+
"@org_golang_x_mod//sumdb/storage:go_default_test",
209+
],
210+
)

0 commit comments

Comments
 (0)