-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Document how to avoid protoc
artifact download
#43992
Conversation
Update the gRPC codegen to avoid having to use a downloaded protoc and document how the user can avoid using a downloaded protoc and use a local one instead. Unfortunately, due to the packaging of `protoc` and Java plugin (using classifier), it is not possible to exclude platforms individually.
🙈 The PR is closed and the preview is expired. |
Status for workflow
|
@aloubyansky Here is an example where having the possibility to trigger dependency resolution from a "code generator" would help. |
Status for workflow
|
| Windows x86 64 bits | `windows-x86_64` | `com.google.protobuf:protoc:VERSION:exe:windows-x86_64` and `io.grpc:protoc-gen-grpc-java:VERSION:exe:windows-x86_64` | ||
|=== | ||
|
||
Because of the packaging of `protoc` and the plugin (using classifier), it's not possible to exclude undesired platforms individually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fact that Maven does not allow that is appalling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, it's Gradle that is problematic here: #43038 .
We had a proper solution for Maven.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean Maven does not allow to exclude a dependency with a specific classifier (in a pom.xml). I can't see why.
Update the gRPC codegen to avoid using a downloaded protoc and document how the user can avoid using a downloaded protoc and use a local one instead.
Unfortunately, due to the packaging of
protoc
and Java plugin (using classifier), it is impossible to exclude platforms individually.Work around #42931 (but not really a fix)