@@ -84,6 +84,7 @@ def gl_cpp_workspace0(name = None):
8484 "https://github.com/bufbuild/protoc-gen-validate/archive/v1.2.1.tar.gz" ,
8585 ],
8686 strip_prefix = "protoc-gen-validate-1.2.1" ,
87+ integrity = "sha256-5HGDUnVN8Tk7h5K2MTOKqFYvOQ6BYHg+NlRUvBHZYyg=" ,
8788 )
8889
8990 # protobuf requires this
@@ -122,7 +123,7 @@ def gl_cpp_workspace0(name = None):
122123 # //:.*mocks targets, which are public.
123124 maybe (
124125 http_archive ,
125- name = "com_google_googletest " ,
126+ name = "googletest " ,
126127 urls = [
127128 "https://github.com/google/googletest/archive/v1.16.0.tar.gz" ,
128129 ],
@@ -141,16 +142,31 @@ def gl_cpp_workspace0(name = None):
141142 strip_prefix = "googleapis-f6801ce4e1df0541abb8d1e996cb36363c41fb8d" ,
142143 build_file = Label ("//bazel:googleapis.BUILD" ),
143144 # Scaffolding for patching googleapis after download. For example:
144- # patches = ["googleapis.patch"]
145- # NOTE: This should only be used while developing with a new
146- # protobuf message. No changes to `patches` should ever be
147- # committed to the main branch.
145+ patches = [
146+
147+ # NOTE: This should only be used while developing with a new
148+ # protobuf message. No changes to `patches` should ever be
149+ # committed to the main branch.
150+ #"googleapis.patch",
151+
152+ # Mirrors the patch from the current bazel module
153+ "//bazel:remove_upb_c_rules.patch" ,
154+ ],
148155 patch_tool = "patch" ,
149- patch_args = ["-p1" , "-l" , "-n" ],
150- patches = [],
156+
157+ # Use the following args when developing with a new proto message
158+ # patch_args = ["-p1", "-l", "-n"],
159+ repo_mapping = {
160+ "@com_github_grpc_grpc" : "@grpc" ,
161+ },
151162 )
152163
153164 # Load protobuf.
165+ # The name "com_google_protobuf" is internally used by @bazel_tools,
166+ # a native repository we cannot override.
167+ # We will revert this to @protobuf once @bazel_tools is deprecated
168+ # and libraries have strayed away from it.
169+ # See https://github.com/googleapis/google-cloud-cpp/issues/15393
154170 maybe (
155171 http_archive ,
156172 name = "com_google_protobuf" ,
@@ -176,30 +192,48 @@ def gl_cpp_workspace0(name = None):
176192 strip_prefix = "boringssl-82a53d8c902f940eb1310f76a0b96c40c67f632f" ,
177193 )
178194
195+ # This is a transitive dependency of grpc
196+ maybe (
197+ http_archive ,
198+ name = "io_bazel_rules_go" ,
199+ sha256 = "d93ef02f1e72c82d8bb3d5169519b36167b33cf68c252525e3b9d3d5dd143de7" ,
200+ urls = [
201+ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip" ,
202+ "https://github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip" ,
203+ ],
204+ patch_args = ["-p1" ],
205+ )
206+
179207 # Load gRPC and its dependencies, using a similar pattern to this function.
180208 maybe (
181209 http_archive ,
182- name = "com_github_grpc_grpc " ,
210+ name = "grpc " ,
183211 urls = [
184- "https://github.com/grpc/grpc/archive/v1.71.0 .tar.gz" ,
212+ "https://github.com/grpc/grpc/archive/v1.74.1 .tar.gz" ,
185213 ],
186214 repo_mapping = {
187215 "@com_google_absl" : "@abseil-cpp" ,
216+ "@com_github_grpc_grpc" : "@grpc" ,
188217 },
189- sha256 = "0d631419e54ec5b29def798623ee3bf5520dac77abeab3284ef7027ec2363f91" ,
190- strip_prefix = "grpc-1.71.0" ,
218+ sha256 = "7bf97c11cf3808d650a3a025bbf9c5f922c844a590826285067765dfd055d228" ,
219+ strip_prefix = "grpc-1.74.1" ,
220+ )
221+
222+ native .bind (
223+ name = "protocol_compiler" ,
224+ actual = "@com_google_protobuf//:protoc" ,
191225 )
192226
193227 # We use the cc_proto_library() rule from @com_google_protobuf, which
194228 # assumes that grpc_cpp_plugin and grpc_lib are in the //external: module
195229 native .bind (
196230 name = "grpc_cpp_plugin" ,
197- actual = "@com_github_grpc_grpc //src/compiler:grpc_cpp_plugin" ,
231+ actual = "@grpc //src/compiler:grpc_cpp_plugin" ,
198232 )
199233
200234 native .bind (
201235 name = "grpc_lib" ,
202- actual = "@com_github_grpc_grpc //:grpc++" ,
236+ actual = "@grpc //:grpc++" ,
203237 )
204238
205239 # We need libcurl for the Google Cloud Storage client.
@@ -217,7 +251,7 @@ def gl_cpp_workspace0(name = None):
217251 # We need the nlohmann_json library
218252 maybe (
219253 http_archive ,
220- name = "com_github_nlohmann_json " ,
254+ name = "nlohmann_json " ,
221255 urls = [
222256 "https://github.com/nlohmann/json/archive/v3.11.3.tar.gz" ,
223257 ],
@@ -228,7 +262,7 @@ def gl_cpp_workspace0(name = None):
228262 # Load google/crc32c, a library to efficiently compute CRC32C checksums.
229263 maybe (
230264 http_archive ,
231- name = "com_github_google_crc32c " ,
265+ name = "crc32c " ,
232266 urls = [
233267 "https://github.com/google/crc32c/archive/1.1.2.tar.gz" ,
234268 ],
@@ -243,7 +277,7 @@ def gl_cpp_workspace0(name = None):
243277 # Open Telemetry
244278 maybe (
245279 http_archive ,
246- name = "io_opentelemetry_cpp " ,
280+ name = "opentelemetry-cpp " ,
247281 urls = [
248282 "https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.20.0.tar.gz" ,
249283 ],
0 commit comments