-
Notifications
You must be signed in to change notification settings - Fork 48
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-wrapper.jar verification fails when stored via git-lfs #456
Comments
Thanks for the report. We can at least update the documentation for this case. |
@LivingWithHippos Looking at the docs for It looks like the wrapper would fail to execute if you omit this option. |
If you set jars to be managed with git lfs in your repository gradle will always fail without that flag. It will compute the hash of the pointer files instead of the jars (I suppose) |
Thanks. My point is that if someone is using I wonder why |
I've updated the documentation here: https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#wrapper-jar-stored-with-git-lfs. |
If the jars are stored with git-lfs the checksum will fail, the lfs flag needs to be added
otherwise there will be a mismatch, for example gradle 8.10
action error:
✗ Found unknown Gradle Wrapper JAR files: f629a612b54373f56f950e11394850bb65f87dd68d7731fcde2b99564dcfbf78 app/gradle/wrapper/gradle-wrapper.jar Error: Error: At least one Gradle Wrapper Jar failed validation!
Not really a bug, posting this for reference. Maybe a check could be added to display a more useful error message?
The text was updated successfully, but these errors were encountered: