-
Notifications
You must be signed in to change notification settings - Fork 275
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
Changing the version of a hermit-managed protoc binary causes the gradle plugin to incorrectly re-use previous output #689
Comments
(This was using |
Ah, looks like this is a duplicate of #557 and was fixed in 0.8.19. I will verify locally and then close this issue if I'm able to confirm. |
So with 0.8.19, it looks like this works in the usual case where the Unfortunately, in our case, we are using a tool called I don't think this is something that can/should really be addressed in this gradle plugin, so I'm going to close this issue and bring it up with the hermit folks instead. |
Actually I guess one thing that might help here is if the plugin took the output of |
Since this is issue is a combination of hermit and this plugin, it doesn't seem like either of these are the right place for the fix. I ended up putting a fix in another component we use that was one level up on the abstraction ladder. |
We recently had a situation where we are configuring a project like so:
And the binary at
$rootDir/bin/protoc
was updated from one version to another (v3.21 to v22). However, this change did not result in the gradle plugin re-running the generateProto task; instead it reused the cached results, resulting in (for us) subsequent breakage later.The protoc binary in use should be annotated as an input to the task so that gradle knows to re-run the task if it changes.
The text was updated successfully, but these errors were encountered: