-
Notifications
You must be signed in to change notification settings - Fork 459
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
Verifying the version of binary tool too early #1762
Comments
It actually goes deeper - Buf configures the binary to be executable as well. Calling it at configuration time doesn't work great with resolving a binary from a configuration. |
We need to resolve the State at configuration time, that is what makes up-to-date checks work
But we don't need to create the
So we could remove |
Turns out this was a bug in the buf-gradle-plugin: bufbuild/buf-gradle-plugin#148 |
Trying to put #1208 into action and running into a dependency issue - it looks like Spotless is validating the provided version at configuration time, which is earlier than the value of
toolVersion
on BufExtension is resolvable to anything but its default.An abridged version of my configuration:
This fails because the default value for
toolVersion
is 1.17.0 and resolving the Buf binary configuration is too eager.Do you know if it's possible to:
Or if there's another approach that would be better?
Thanks!
The text was updated successfully, but these errors were encountered: