Skip to content
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

Open
LivingWithHippos opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@LivingWithHippos
Copy link

If the jars are stored with git-lfs the checksum will fail, the lfs flag needs to be added

    steps:
      - uses: actions/checkout@v4
        with:
          lfs: true  # gradle-wrapper.jar verification will fail without this

otherwise there will be a mismatch, for example gradle 8.10

❯ sha256sum gradle-wrapper.jar
2db75c40782f5e8ba1fc278a5574bab070adccb2d21ca5a6e5ed840888448046  gradle-wrapper.jar

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant