-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link conflict with isolate=True, go_proto_library and the grpc compiler #1990
Comments
Simply adding "google.golang.org/grpc" to the _SHARED_REPOS doesn't do the trick as the name is not available because the isolated module has a direct dependency on that go module and then use_repo will complain that no "org_golang_google_grpc" has been defined. In theory the same should happen when there is a dependency on google.golang.org/protobuf. The work around of defining our own grpc proto compiler seems to work though. In theory if we require It is probably easier to add grpc and dependencies (x/sys, x/net, x/text, google.golang.org/genproto/googleapis/rpc) to the shared repos. |
Observations when attempting to put "google.golang.org/grpc" into
It seems that there is currently no primitive to import/alias "org_golang_google_grpc". In an act of desperation I tried to use inject_repo+use_repo and it doesn't have the desired effect. @fmeum Any idea in which direction I should be looking at? |
I tried to reproduce this with your patch applied to the current state of master, but |
|
What version of gazelle are you using?
HEAD as of 30th of November 2024
What version of rules_go are you using?
0.50.1
What version of Bazel are you using?
7.4.1
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
Macos 14.7.1 on arm64
What did you do?
We have a go tool that is using gRPC, go_proto_library and load it from a bazel module that is using "isolate = True" to isolate the tools dependencies from the application.
We want to run the tool using:
bazel run @my_module//tool
What did you expect to see?
The tool to run
What did you see instead?
(I modified the testcase we already have for the isolate test to have a protobuf with grpc in the isolated test_dep. See the attached commit)
0001-WIP.patch
The text was updated successfully, but these errors were encountered: