@@ -75,10 +75,10 @@ bazel_skylib_workspace()
7575
7676http_archive (
7777 name = "bazel_gazelle" ,
78- sha256 = "727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405" ,
78+ sha256 = "178eba9540a616bda314afa25a91f195758a9fed178eda72e149eb0d20e9b670" ,
79+ strip_prefix = "bazel-gazelle-9fe0a3ff751647789690293dcbb3c87ea33b7566" ,
7980 urls = [
80- "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz" ,
81- "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz" ,
81+ "https://github.com/bazelbuild/bazel-gazelle/archive/9fe0a3ff751647789690293dcbb3c87ea33b7566.zip" ,
8282 ],
8383)
8484
@@ -119,6 +119,25 @@ go_repository(
119119 version = "v0.6.0" ,
120120)
121121
122+ http_archive (
123+ name = "googleapis" ,
124+ sha256 = "9d1a930e767c93c825398b8f8692eca3fe353b9aaadedfbcf1fca2282c85df88" ,
125+ strip_prefix = "googleapis-64926d52febbf298cb82a8f472ade4a3969ba922" ,
126+ urls = [
127+ "https://github.com/googleapis/googleapis/archive/64926d52febbf298cb82a8f472ade4a3969ba922.zip" ,
128+ ],
129+ )
130+
131+ go_repository (
132+ name = "org_golang_google_genproto" ,
133+ build_extra_args = ["-exclude=vendor" ],
134+ build_file_generation = "on" ,
135+ build_file_proto_mode = "disable_global" ,
136+ importpath = "google.golang.org/genproto" ,
137+ sum = "h1:S9GbmC1iCgvbLyAokVCwiO6tVIrU9Y7c5oMx1V/ki/Y=" ,
138+ version = "v0.0.0-20221024183307-1bc688fe9f3e" ,
139+ )
140+
122141# TODO(sluongng): Gazelle v0.25.0 switched to static dependency resolution which cause
123142# build files generation in external dependencies to wrongly resolve these repositories.
124143# We should investigate in Gazelle why this happen and fix it.
@@ -180,8 +199,13 @@ load(
180199
181200apple_support_dependencies ()
182201
183- # For testing the compatibility with a hermetic cc toolchain. Users should not have to enable it.
202+ load ( "@googleapis//:repository_rules.bzl" , "switched_rules_by_language" )
184203
204+ switched_rules_by_language (
205+ name = "com_google_googleapis_imports" ,
206+ )
207+
208+ # For testing the compatibility with a hermetic cc toolchain. Users should not have to enable it.
185209http_archive (
186210 name = "hermetic_cc_toolchain" ,
187211 sha256 = "bd2234acd0837251361be3270d7d3ce599b418be123d902d84762302e31a3014" ,
0 commit comments