Description
🐛 Bug Report
I upgraded to rules_go to 0.41.0 which removed @go_googleapis
as a provided repo. However, grpc-gateway
still references @go_googleapis
internally so I had to enable build_file_generation
to regenerate grpc-gateway's BUILD files as well as add resolve clauses for proto references.
While diagnosing the issue, I noticed that grpc gateway's renovate attempted to upgrade to rules_go 0.41.0 but did so in an inconsistent/invalid manner such that the upgrade doesn't take effect.
#3397 has the 0.41.0 version only on the fallback URL and doesn't apply to the file archive either.
To Reproduce
Upgrade to rules_go 0.41.0
Upgrade to gazelle 0.32.0
Run bazel build @com_github_grpc_ecosystem_grpc_gateway_v2//internal/descriptor/apiconfig:apiconfig_proto
Expected behavior
Bazel build succeeds
Actual Behavior
The bazel build will fail because @go_googleapis
is no longer provided and gazelle searches for google/api
in the local workspace.
external/com_github_grpc_ecosystem_grpc_gateway_v2/internal/descriptor/apiconfig/BUILD.bazel:7:14: no such package '@com_github_grpc_ecosystem_grpc_gateway_v2//google/api': BUILD file not found in directory 'google/api' of external repository @com_github_grpc_ecosystem_grpc_gateway_v2. Add a BUILD file to a directory to mark it as a package. and referenced by '@com_github_grpc_ecosystem_grpc_gateway_v2//internal/descriptor/apiconfig:apiconfig_proto'
Your Environment
OSX Ventura 13.4.1