@@ -18,7 +18,6 @@ load("//go/private:common.bzl", "MINIMUM_BAZEL_VERSION")
18
18
load ("//go/private:skylib/lib/versions.bzl" , "versions" )
19
19
load ("//go/private:nogo.bzl" , "DEFAULT_NOGO" , "go_register_nogo" )
20
20
load ("//proto:gogo.bzl" , "gogo_special_proto" )
21
- load ("@bazel_tools//tools/build_defs/repo:git.bzl" , "git_repository" )
22
21
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
23
22
24
23
def go_rules_dependencies (is_rules_go = False ):
@@ -45,13 +44,13 @@ def go_rules_dependencies(is_rules_go = False):
45
44
_maybe (
46
45
http_archive ,
47
46
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
50
49
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" ,
53
52
],
54
- sha256 = "81394f5999413fcdfe918b254de3c3c0d606fbd436084b904e254b1603ab7616 " ,
53
+ sha256 = "ae95e4bfcd9f66e9dc73a92cee0107fede74163f788e3deefe00f3aaae75c431 " ,
55
54
)
56
55
57
56
# Needed by rules_go implementation and tests.
@@ -60,7 +59,7 @@ def go_rules_dependencies(is_rules_go = False):
60
59
_maybe (
61
60
http_archive ,
62
61
name = "bazel_skylib" ,
63
- # 1.0.2, latest as of 2020-05-12
62
+ # 1.0.2, latest as of 2020-08-24
64
63
urls = [
65
64
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz" ,
66
65
"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):
72
71
_maybe (
73
72
http_archive ,
74
73
name = "org_golang_x_tools" ,
75
- # master, as of 2020-05-12
74
+ # master, as of 2020-08-24
76
75
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" ,
79
78
],
80
- sha256 = "b05c5b5b9091a35ecb433227ea30aa75cb6b9d9409b308bc75d0975d4a291912 " ,
81
- strip_prefix = "tools-2bc93b1c0c88b2406b967fcd19a623d1ff9ea0cd " ,
79
+ sha256 = "5b330e3bd29a52c235648457e1aa899d948cb1eb90a8b5caa0ac882be75572db " ,
80
+ strip_prefix = "tools-c024452afbcdebb4a0fbe1bb0eaea0d2dbff835b " ,
82
81
patches = [
83
82
# deletegopls removes the gopls subdirectory. It contains a nested
84
83
# module with additional dependencies. It's not needed by rules_go.
85
84
"@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
87
86
"@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" ,
92
87
],
93
88
patch_args = ["-p1" ],
94
89
)
@@ -97,15 +92,15 @@ def go_rules_dependencies(is_rules_go = False):
97
92
_maybe (
98
93
http_archive ,
99
94
name = "org_golang_x_xerrors" ,
100
- # master, as of 2020-05-12
95
+ # master, as of 2020-08-24
101
96
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" ,
104
99
],
105
- sha256 = "757fe99de4d23e10a3343e9790866211ecac0458c5268da43e664a5abeee27e3 " ,
106
- strip_prefix = "xerrors-9bdfabe68543c54f90421aeb9a60ef8061b5b544 " ,
100
+ sha256 = "cd9de801daf63283be91a76d7f91e8a9541798c5c0e8bcfb7ee804b78a493b02 " ,
101
+ strip_prefix = "xerrors-5ec99f83aff198f5fbd629d6c8d8eb38a04218ca " ,
107
102
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
109
104
"@io_bazel_rules_go//third_party:org_golang_x_xerrors-gazelle.patch" ,
110
105
],
111
106
patch_args = ["-p1" ],
@@ -114,12 +109,15 @@ def go_rules_dependencies(is_rules_go = False):
114
109
# Needed for additional targets declared around binaries with c-archive
115
110
# and c-shared link modes.
116
111
_maybe (
117
- git_repository ,
112
+ http_archive ,
118
113
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" ,
123
121
)
124
122
125
123
# Proto dependencies
@@ -142,15 +140,15 @@ def go_rules_dependencies(is_rules_go = False):
142
140
_maybe (
143
141
http_archive ,
144
142
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
147
145
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" ,
150
148
],
151
- strip_prefix = "protobuf-go-1.22 .0" ,
149
+ strip_prefix = "protobuf-go-1.25 .0" ,
152
150
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
154
152
"@io_bazel_rules_go//third_party:org_golang_google_protobuf-gazelle.patch" ,
155
153
],
156
154
patch_args = ["-p1" ],
@@ -164,18 +162,16 @@ def go_rules_dependencies(is_rules_go = False):
164
162
_maybe (
165
163
http_archive ,
166
164
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
168
166
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" ,
171
169
],
172
- sha256 = "7b6e8ed38df65e08a4446aa09d3596b2cb56f279d8a813a3c491542b790f990d " ,
173
- strip_prefix = "protobuf-1.4.1 " ,
170
+ sha256 = "d661b447b6780ab0efd22011b963459dde08ae1f7fa782ab48809a66dcfd7c4c " ,
171
+ strip_prefix = "protobuf-1.4.2 " ,
174
172
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
176
174
"@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" ,
179
175
],
180
176
patch_args = ["-p1" ],
181
177
)
@@ -185,28 +181,28 @@ def go_rules_dependencies(is_rules_go = False):
185
181
_maybe (
186
182
http_archive ,
187
183
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
189
185
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" ,
192
188
],
193
- sha256 = "eb8ed7900990031bb5d2c8c8f621532ae723d4c6f8ba709667804c4795589e9e " ,
194
- strip_prefix = "go-proto-validators-0.3.1 " ,
189
+ sha256 = "d8697f05a2f0eaeb65261b480e1e6035301892d9fc07ed945622f41b12a68142 " ,
190
+ strip_prefix = "go-proto-validators-0.3.2 " ,
195
191
# Bazel support added in v0.3.0, so no patches needed.
196
192
)
197
193
198
194
_maybe (
199
195
http_archive ,
200
196
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
202
198
urls = [
203
199
"https://mirror.bazel.build/github.com/gogo/protobuf/archive/v1.3.1.zip" ,
204
200
"https://github.com/gogo/protobuf/archive/v1.3.1.zip" ,
205
201
],
206
202
sha256 = "2056a39c922c7315530fc5b7a6ce10cc83b58c844388c9b2e903a0d8867a8b66" ,
207
203
strip_prefix = "protobuf-1.3.1" ,
208
204
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
210
206
"@io_bazel_rules_go//third_party:com_github_gogo_protobuf-gazelle.patch" ,
211
207
],
212
208
patch_args = ["-p1" ],
@@ -224,15 +220,15 @@ def go_rules_dependencies(is_rules_go = False):
224
220
_maybe (
225
221
http_archive ,
226
222
name = "org_golang_google_genproto" ,
227
- # master, as of 2020-05-21
223
+ # master, as of 2020-08-24
228
224
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" ,
231
227
],
232
- sha256 = "e056e969e0dce308a28ff6f626fb4b0006fafc3fd6f300e042f14938106ce386 " ,
233
- strip_prefix = "go-genproto-f5ebc3bea3804948c8feb1e2b62323d73add1083 " ,
228
+ sha256 = "22d99299278eb992d27a426350c290dfd272818104d02f244162127886ba25d7 " ,
229
+ strip_prefix = "go-genproto-f69a88009b70a94c67e3910bf1663f5df9fbfc6d " ,
234
230
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
236
232
"@io_bazel_rules_go//third_party:org_golang_google_genproto-gazelle.patch" ,
237
233
],
238
234
patch_args = ["-p1" ],
@@ -246,13 +242,13 @@ def go_rules_dependencies(is_rules_go = False):
246
242
_maybe (
247
243
http_archive ,
248
244
name = "go_googleapis" ,
249
- # master, as of 2020-05-21
245
+ # master, as of 2020-08-24
250
246
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" ,
253
249
],
254
- sha256 = "56868d9399a0576a2e01ce524e64477cd58ce0bf9ee298490482d1a618b8d11a " ,
255
- strip_prefix = "googleapis-bf17ae5fd93929beb44ac4c6b04f5088c3ee4a02 " ,
250
+ sha256 = "bba8988a57dc1d259d8e032f3858b52e9708fb863cd378322e703c79582bd064 " ,
251
+ strip_prefix = "googleapis-079e09a64813291f71759d0e1b5f14b0794dc345 " ,
256
252
patches = [
257
253
# find . -name BUILD.bazel -delete
258
254
"@io_bazel_rules_go//third_party:go_googleapis-deletebuild.patch" ,
0 commit comments