write-verification-metadata
fails with java.io.FileNotFoundException for many (not all) dependencies
#12260
Labels
write-verification-metadata
fails with java.io.FileNotFoundException for many (not all) dependencies
#12260
I'm trying out the new dependency verification function, running
gradle --write-verification-metadata sha256
on a quite complicated project, the configuration phase starts and things look ok, it is cycling through the many (110~) modules in the project, it eventually fail with a list of 50~ dependencies it can't find thepom
file of, these files genuinely don't exist, so the FileNotFound is correct, but possibly the process is picking up transitive dependencies that have been resolved to a later versionExpected Behavior
Process should complete successfully, and the XML be updated with dependency hashes
Current Behavior
Throws many FileNotFounds
Context
Recently upgraded to 6.2 GA
Steps to Reproduce
./gradlew --write-verification-metadata sha256
from examplebuild.gradle
belowI've reduced the build.gradle for the repro, in this example there is just one failure, in the larger project there are many failures. There does seem to be some non-deterministic behaviour, i've had it succeed on the rate occasion, and then the file it is looking for exists. So possibly there is a race between fulfilling the metadata request and verifying it? It seems to only happen for some dependencies too, I cut this dependency out of a larger set and this is the only one that failed.
Your Environment
Build scan URL: https://scans.gradle.com/s/7b75xhdjpya3o
The text was updated successfully, but these errors were encountered: