summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/fetch-options/package.py
diff options
context:
space:
mode:
authorTodd Gamblin <gamblin2@llnl.gov>2021-09-08 07:59:06 -0700
committerGitHub <noreply@github.com>2021-09-08 07:59:06 -0700
commitc309adb4b3a3d278fef89b32e6ad6fe677748ecb (patch)
tree789437e793a69b2272b4262f48279e03489e2212 /var/spack/repos/builtin.mock/packages/fetch-options/package.py
parentc2a6ccbea843435d942f68ce60eb4c921d980150 (diff)
downloadspack-c309adb4b3a3d278fef89b32e6ad6fe677748ecb.tar.gz
spack-c309adb4b3a3d278fef89b32e6ad6fe677748ecb.tar.bz2
spack-c309adb4b3a3d278fef89b32e6ad6fe677748ecb.tar.xz
spack-c309adb4b3a3d278fef89b32e6ad6fe677748ecb.zip
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).
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/fetch-options/package.py')
-rw-r--r--var/spack/repos/builtin.mock/packages/fetch-options/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin.mock/packages/fetch-options/package.py b/var/spack/repos/builtin.mock/packages/fetch-options/package.py
index 3c327010a3..2619ca6e87 100644
--- a/var/spack/repos/builtin.mock/packages/fetch-options/package.py
+++ b/var/spack/repos/builtin.mock/packages/fetch-options/package.py
@@ -17,6 +17,6 @@ class FetchOptions(Package):
timeout = {'timeout': 65}
cookie = {'cookie': 'baz'}
- version('1.2', 'abc12', fetch_options=cookie)
- version('1.1', 'abc11', fetch_options=timeout)
- version('1.0', 'abc10')
+ version('1.2', '00000000000000000000000000000012', fetch_options=cookie)
+ version('1.1', '00000000000000000000000000000011', fetch_options=timeout)
+ version('1.0', '00000000000000000000000000000010')