Skip to content

Commit f235b89

Browse files
Google APIscopybara-github
authored andcommitted
chore(bazel): temp override go-genproto dep
PiperOrigin-RevId: 357228807
1 parent f9cd594 commit f235b89

1 file changed

Lines changed: 25 additions & 14 deletions

File tree

WORKSPACE

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,37 @@ http_archive(
9292
],
9393
)
9494

95+
# bazel-gazelle (support Golang under bazel)
96+
http_archive(
97+
name = "bazel_gazelle",
98+
sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c",
99+
urls = [
100+
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
101+
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
102+
],
103+
)
104+
95105
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
106+
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
107+
108+
# Override the go-genproto dependency to enable use of GapicMetadata types.
109+
#
110+
# TODO(noahdietz): remove with next rules_go release.
111+
# https://github.com/googleapis/gapic-generator-go/issues/529
112+
go_repository(
113+
name = "org_golang_google_genproto",
114+
build_file_proto_mode = "disable_global",
115+
importpath = "google.golang.org/genproto",
116+
sum = "h1:N98SvVh7Hdle2lgUVFuIkf0B3u29CUakMUQa7Hwz8Wc=",
117+
version = "v0.0.0-20210207032614-bba0dbe2a9ea",
118+
)
96119

97120
go_rules_dependencies()
98121

99122
go_register_toolchains()
100123

124+
gazelle_dependencies()
125+
101126
##############################################################################
102127
# C++
103128
##############################################################################
@@ -254,20 +279,6 @@ gapic_generator_register_toolchains()
254279
# Go
255280
##############################################################################
256281

257-
# bazel-gazelle (support Golang under bazel)
258-
http_archive(
259-
name = "bazel_gazelle",
260-
sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c",
261-
urls = [
262-
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
263-
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
264-
],
265-
)
266-
267-
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
268-
269-
gazelle_dependencies()
270-
271282
http_archive(
272283
name = "com_googleapis_gapic_generator_go",
273284
strip_prefix = "gapic-generator-go-0.17.1",

0 commit comments

Comments
 (0)