summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTom Scogland <scogland1@llnl.gov>2022-02-22 16:55:59 -0800
committerGitHub <noreply@github.com>2022-02-23 00:55:59 +0000
commita9ba40164ace81af7c7488bdcb693e42a3446b48 (patch)
treec464bf1c012848dd7759c9f653d25ca8590c76a6 /var
parent535262844b56529a12347fc733c8b02df2d7dcd4 (diff)
downloadspack-a9ba40164ace81af7c7488bdcb693e42a3446b48.tar.gz
spack-a9ba40164ace81af7c7488bdcb693e42a3446b48.tar.bz2
spack-a9ba40164ace81af7c7488bdcb693e42a3446b48.tar.xz
spack-a9ba40164ace81af7c7488bdcb693e42a3446b48.zip
Checksum match (#28989)
* cmd/checksum: prefer url matching url_from_version This is a minimal change toward getting the right archive from places like github. The heuristic is: * if an archive url exists, take its version * generate a url from the package with pkg.url_from_version * if they match * stop considering other URLs for this version * otherwise, continue replacing the url for the version I doubt this will always work, but it should address a variety of versions of this bug. A good test right now is `spack checksum gh`, which checksums macos binaries without this, and the correct source packages with it. fixes #15985 related to #14129 related to #13940 * add heuristics to help create as well Since create can't rely on an existing package, this commit adds another pair of heuristics: 1. if the current version is a specifically listed archive, don't replace it 2. if the current url matches the result of applying `spack.url.substitute_version(a, ver)` for any a in archive_urls, prefer it and don't replace it fixes #13940 * clean up style and a lingering debug import * ok flake8, you got me * document reference_package argument * Update lib/spack/spack/util/web.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * try to appease sphinx Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions