Skip to content

Commit 883b764

Browse files
drigzjohanbrandhorst
authored andcommitted
Update to rules_go and buildtools (grpc-ecosystem#956)
* Update to rules_go v0.18.6 This fixes the build with Bazel 0.27. * Update bazelbuild/buildtools to v0.26. This is also required for Bazel 0.27, it seems. Fixes grpc-ecosystem#955
1 parent ee2f385 commit 883b764

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ buildifier(
1212

1313
# gazelle:exclude third_party
1414
# gazelle:exclude vendor
15+
# gazelle:exclude _output
1516
# gazelle:prefix github.com/grpc-ecosystem/grpc-gateway
1617

1718
gazelle(name = "gazelle")

WORKSPACE

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

55
http_archive(
66
name = "io_bazel_rules_go",
7-
sha256 = "6776d68ebb897625dead17ae510eac3d5f6342367327875210df44dbe2aeeb19",
8-
urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.17.1/rules_go-0.17.1.tar.gz"],
7+
sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d",
8+
urls = [
9+
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
10+
"https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
11+
],
912
)
1013

1114
http_archive(
@@ -61,8 +64,9 @@ go_repository(
6164

6265
http_archive(
6366
name = "com_github_bazelbuild_buildtools",
64-
strip_prefix = "buildtools-bf564b4925ab5876a3f64d8b90fab7f769013d42",
65-
url = "https://github.com/bazelbuild/buildtools/archive/bf564b4925ab5876a3f64d8b90fab7f769013d42.zip",
67+
sha256 = "86592d703ecbe0c5cbb5139333a63268cf58d7efd2c459c8be8e69e77d135e29",
68+
strip_prefix = "buildtools-0.26.0",
69+
urls = ["https://github.com/bazelbuild/buildtools/archive/0.26.0.tar.gz"],
6670
)
6771

6872
load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")

0 commit comments

Comments
 (0)