@@ -94,6 +94,24 @@ go_rules_dependencies()
9494
9595go_register_toolchains (version = "1.16" )
9696
97+ # rules_gapic also depends on rules_go, so it must come after our own dependency on rules_go.
98+ # It must also come before gapic-generator-go so as to ensure that it does not bring in an old
99+ # version of rules_gapic.
100+ _rules_gapic_version = "0.14.1"
101+
102+ _rules_gapic_sha256 = "8483dfe3def57fb6549167dfc9792cdb878af2d521340fc50f094050a7a4180d"
103+
104+ http_archive (
105+ name = "rules_gapic" ,
106+ sha256 = _rules_gapic_sha256 ,
107+ strip_prefix = "rules_gapic-%s" % _rules_gapic_version ,
108+ urls = ["https://github.com/googleapis/rules_gapic/archive/v%s.tar.gz" % _rules_gapic_version ],
109+ )
110+
111+ load ("@rules_gapic//:repositories.bzl" , "rules_gapic_repositories" )
112+
113+ rules_gapic_repositories ()
114+
97115# Gazelle dependency version should match gazelle dependency expected by gRPC
98116_bazel_gazelle_version = "0.24.0"
99117
@@ -129,22 +147,6 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
129147
130148gazelle_dependencies ()
131149
132- # rules_gapic also depends on rules_go, so it must come after our own dependency on rules_go.
133- _rules_gapic_version = "0.14.1"
134-
135- _rules_gapic_sha256 = "8483dfe3def57fb6549167dfc9792cdb878af2d521340fc50f094050a7a4180d"
136-
137- http_archive (
138- name = "rules_gapic" ,
139- sha256 = _rules_gapic_sha256 ,
140- strip_prefix = "rules_gapic-%s" % _rules_gapic_version ,
141- urls = ["https://github.com/googleapis/rules_gapic/archive/v%s.tar.gz" % _rules_gapic_version ],
142- )
143-
144- load ("@rules_gapic//:repositories.bzl" , "rules_gapic_repositories" )
145-
146- rules_gapic_repositories ()
147-
148150##############################################################################
149151# C++
150152##############################################################################
0 commit comments