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

Support declaring expected checksum #69

Open
dsvensson opened this issue Apr 16, 2024 · 0 comments
Open

Support declaring expected checksum #69

dsvensson opened this issue Apr 16, 2024 · 0 comments

Comments

@dsvensson
Copy link

dsvensson commented Apr 16, 2024

Just like gradle wrapper can be configured to verify checksum, fetching JVM should have a similar mechanism to verify that what is installed, is what is expected to be installed.

tasks {
	wrapper {
		gradleVersion = "8.5"
		distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-bin.zip"
		distributionSha256Sum = "9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026"
	}
}

This would have to take into account different checksums for different operating systems and architectures.

A more convenient version of this would be to at least verify release signatures using the local keychain already used for dependency verification, to not get in the way of minor-version bumps.

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