-
Notifications
You must be signed in to change notification settings - Fork 13
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
Gradle bufBuild
hang on newer version of Protobuf
#172
Comments
Can you provide a reproducer? I can upgrade the version of protobuf-java in the plugin's integration tests and they continue to run without issue. |
hi Andrew, please check this simple setup for reproducing the issue: https://github.com/jeffawx/buf-proto-issue I have put details in the README, one thing to correct: this is only a problem for |
I can confirm the issue. The
Here is the minimal plugins {
id("java")
id("com.google.protobuf") version "0.9.4"
id("build.buf") version "0.9.0"
}
repositories {
mavenCentral()
}
val protobufJvm = "3.25.0"
dependencies {
implementation("com.google.protobuf:protobuf-java:$protobufJvm")
implementation("com.google.protobuf:protobuf-kotlin:$protobufJvm")
}
buf {
toolVersion = "1.29.0"
} Running Gradle with Click me
|
Note: this seems to be a problem on the Running the command manually fails immediately showing logs indicating duplicate definitions. Buf could also probably handle this more nicely by not failing. For what it's worth -- I've handled this locally by adding a task to manually strip the superfluous files. This issue is open on the |
Closing this based on @berksean's comment |
The Gradle command hangs infinitely without any response:
./gradlew clean bufBuild --no-build-cache
This only happens after I upgraded protobuf-java from version
3.24.4
to3.25.1
My project info:
protobuf-gradle-plugin
but no explicit workspacebuf.yaml
with content:Tried both plugin version
0.8.3
and newest0.8.6
, as long as I upgraded project Protobuf version it started to hang.The text was updated successfully, but these errors were encountered: