You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to upgrade our monorepo to bazel modules but I'm getting an issue where grpc-gateway doesn't seem to be able to resolve the @googleapis module. This is the error I'm getting:
ERROR: no such package '@@[unknown repo 'googleapis' requested from @@gazelle++go_deps+com_github_grpc_ecosystem_grpc_gateway_v2]//google/api': The repository '@@[unknown repo 'googleapis' requested from @@gazelle++go_deps+com_github_grpc_ecosystem_grpc_gateway_v2]' could not be resolved: No repository visible as '@googleapis' from repository '@@gazelle++go_deps+com_github_grpc_ecosystem_grpc_gateway_v2'
I have tried running the following commands and they both work so I'm pretty sure I've configured the root module correctly
grpc-gateway should be able to resolve @googleapis
Actual Behavior
ERROR: no such package '@@[unknown repo 'googleapis' requested from @@gazelle++go_deps+com_github_grpc_ecosystem_grpc_gateway_v2]//google/api': The repository '@@[unknown repo 'googleapis' requested from @@gazelle++go_deps+com_github_grpc_ecosystem_grpc_gateway_v2]' could not be resolved: No repository visible as '@googleapis' from repository '@@gazelle++go_deps+com_github_grpc_ecosystem_grpc_gateway_v2'
Your Environment
macOS 15.3.2
go 1.24
bazel 8.1.1
The text was updated successfully, but these errors were encountered:
Hi, thanks for the issue. I'm really not very familiar with Bazel, but I've been fortunate enough to have had help from contributors like @AlejoAsd, who may be able to figure out what's going on 😬.
🐛 Bug Report
I'm trying to upgrade our monorepo to bazel modules but I'm getting an issue where
grpc-gateway
doesn't seem to be able to resolve the@googleapis
module. This is the error I'm getting:I have tried running the following commands and they both work so I'm pretty sure I've configured the root module correctly
To Reproduce
I have created a minimal repo that has the same issue. The README contains the output from some relevant commands.
https://github.com/itmecho/bzlmodgotest
Expected behavior
grpc-gateway
should be able to resolve@googleapis
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: