spack/lib/spack
Harmen Stoppels 5f8c09fd33
Print file summary on checksum validation failure (#35161)
Currently we print "sha256 checksum failed for [file]. Expected X but
got Y".

This PR extends that message with file size and contents info:

"... but got Y. File size = 123456 bytes. Contents = b'abc...def'"

That way we can immediately see if the file was downloaded only
partially, or if we downloaded a text page instead of a binary, etc.

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2023-01-25 15:02:41 +00:00
..
docs Identify Windows support with tags (#35027) 2023-01-20 13:32:28 -08:00
env license year bump (#34921) 2023-01-18 14:30:17 -08:00
external license year bump (#34921) 2023-01-18 14:30:17 -08:00
llnl license year bump (#34921) 2023-01-18 14:30:17 -08:00
spack Print file summary on checksum validation failure (#35161) 2023-01-25 15:02:41 +00:00
spack_installable license year bump (#34921) 2023-01-18 14:30:17 -08:00