summaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorNathan Hanford <8302958+nhanford@users.noreply.github.com>2023-05-12 10:27:42 -0700
committerGitHub <noreply@github.com>2023-05-12 10:27:42 -0700
commiteef253605577d823dcd2b976f2c70db4e5a48ce1 (patch)
treeeafdae5b85b8d3aaad24c1b91d83485eefcd05a6 /pyproject.toml
parente2ae60a3b0535c553f6c5a13e7106abbbeef36cb (diff)
downloadspack-eef253605577d823dcd2b976f2c70db4e5a48ce1.tar.gz
spack-eef253605577d823dcd2b976f2c70db4e5a48ce1.tar.bz2
spack-eef253605577d823dcd2b976f2c70db4e5a48ce1.tar.xz
spack-eef253605577d823dcd2b976f2c70db4e5a48ce1.zip
Allow buildcache specs to be referenced by hash (#35042)
Currently, specs on buildcache mirrors must be referenced by their full description. This PR allows buildcache specs to be referenced by their hashes, rather than their full description. ### How it works Hash resolution has been moved from `SpecParser` into `Spec`, and now includes the ability to execute a `BinaryCacheQuery` after checking the local store, but before concluding that the hash doesn't exist. ### Side-effects of Proposed Changes Failures will take longer when nonexistent hashes are parsed, as mirrors will now be scanned. ### Other Changes - `BinaryCacheIndex.update` has been modified to fail appropriately only when mirrors have been configured. - Tests of hash failures have been updated to use `mutable_empty_config` so they don't needlessly search mirrors. - Documentation has been clarified for `BinaryCacheQuery`, and more documentation has been added to the hash resolution functions added to `Spec`.
Diffstat (limited to 'pyproject.toml')
0 files changed, 0 insertions, 0 deletions