From c309adb4b3a3d278fef89b32e6ad6fe677748ecb Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 8 Sep 2021 07:59:06 -0700 Subject: url stats: add `--show-issues` option (#25792) * tests: make `spack url [stats|summary]` work on mock packages Mock packages have historically had mock hashes, but this means they're also invalid as far as Spack's hash detection is concerned. - [x] convert all hashes in mock package to md5 or sha256 - [x] ensure that all mock packages have a URL - [x] ignore some special cases with multiple VCS fetchers * url stats: add `--show-issues` option `spack url stats` tells us how many URLs are using what protocol, type of checksum, etc., but it previously did not tell us which packages and URLs had the issues. This adds a `--show-issues` option to show URLs with insecure (`http`) URLs or `md5` hashes (which are now deprecated by NIST). --- var/spack/repos/builtin.mock/packages/callpath/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'var/spack/repos/builtin.mock/packages/callpath/package.py') diff --git a/var/spack/repos/builtin.mock/packages/callpath/package.py b/var/spack/repos/builtin.mock/packages/callpath/package.py index cf29e38dd9..cbd9e1afaa 100644 --- a/var/spack/repos/builtin.mock/packages/callpath/package.py +++ b/var/spack/repos/builtin.mock/packages/callpath/package.py @@ -10,9 +10,9 @@ class Callpath(Package): homepage = "https://github.com/tgamblin/callpath" url = "http://github.com/tgamblin/callpath-1.0.tar.gz" - version(0.8, 'foobarbaz') - version(0.9, 'foobarbaz') - version(1.0, 'foobarbaz') + version(0.8, '0123456789abcdef0123456789abcdef') + version(0.9, '0123456789abcdef0123456789abcdef') + version(1.0, '0123456789abcdef0123456789abcdef') depends_on("dyninst") depends_on("mpi") -- cgit v1.2.3-60-g2f50