Gradle Verification Metadata doesn't get updated without verify-metadata
or verify-signatures
being set
#32747
Replies: 1 comment 2 replies
-
If I understand you correctly, you are suggesting to unconditionally always update checksums in
Do you think users would expect this file to be updated with digests/signatures even if verification is disabled? I'm not sure how widespread cases like Elasticsearch are, but without verification the practical value of digests/signatures is pretty limited. I can only imagine they are needed as audit trail/integrity documentation or for manual investigations (oh, hello |
Beta Was this translation helpful? Give feedback.
-
Tell us more.
Context
Related to #32534, Renovate's Gradle Verification Metadata support appears to only be triggered when
verify-metadata
orverify-signatures
are specified.This generally makes sense, as the
gradle/verification-metadata.xml
file is generally only updated when there are checksums of metadata files i.e.pom.xml
s.However, Gradle's Verification Metadata support does also make it possible to store checksums of dependencies in the
gradle/verification-metadata.xml
even with these settings disabled.This could be for dependencies that don't have a checksum distributed in their registry, or for some other reason.
This means that there are cases where using Renovate with Gradle's Verification Metadata does not work out-of-the-box, as you then need to enable
verify-metadata
orverify-signatures
are specified.Example
For instance, with Elasticsearch, we have Verification Metadata set up, but have neither
verify-metadata
orverify-signatures
specified, but we do have other dependencies in thegradle/verification-metadata.xml
.In the case that both options are unset, Gradle will perform metadata verification for these direct dependencies.
When Renovate attempts to update this, however, the
./gradlew ...
command is not executed.Workaround
This would mean that - in the current implementation - we need to enable
verify-metadata
and/orverify-signatures
to be able to get Renovate to update the Gradle Verification Metadata.This is a reasonable short-term solution, but does introduce some trade-offs for the Gradle build.
Proposal
An ideal case would be that Renovate triggers a verification metadata update i.e. if there are any entries in the
gradle/verification-metadata.xml
.Beta Was this translation helpful? Give feedback.
All reactions