diff options
author | Scott Wittenburg <scott.wittenburg@kitware.com> | 2018-12-17 16:23:16 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-02-21 15:37:35 -0600 |
commit | fce1c4133f104c1a09b09909f12bed81a83bb46a (patch) | |
tree | 57578ebb9f5612abf91b50f07d4dc7c0e8fbf6e8 /etc | |
parent | be4b95ee30fd153c7d0ed8e9e80e0a8a20479566 (diff) | |
download | spack-fce1c4133f104c1a09b09909f12bed81a83bb46a.tar.gz spack-fce1c4133f104c1a09b09909f12bed81a83bb46a.tar.bz2 spack-fce1c4133f104c1a09b09909f12bed81a83bb46a.tar.xz spack-fce1c4133f104c1a09b09909f12bed81a83bb46a.zip |
buildcache: Add sub-commands needed by release workflow
Adds four new sub-commands to the buildcache command:
1. save-yaml: Takes a root spec and a list of dependent spec names,
along with a directory in which to save yaml files, and writes out
the full spec.yaml for each of the dependent specs. This only needs
to concretize the root spec once, then indexes it with the names of
the dependent specs.
2. check: Checks a spec (via either an abstract spec or via a full
spec.yaml) against remote mirror to see if it needs to be rebuilt.
Comparies full_hash stored on remote mirror with full_hash computed
locally to determine whether spec needs to be rebuilt. Can also
generate list of specs to check against remote mirror by expanding
the set of release specs expressed in etc/spack/defaults/release.yaml.
3. get-buildcache-name: Makes it possible to attempt to read directly
the spec.yaml file on a remote or local mirror by providing the path
where the file should live based on concretizing the spec.
4. download: Downloads all buildcache files associated with a spec
on a remote mirror, including any .spack, .spec, and .cdashid files
that might exist. Puts the files into the local path provided on
the command line, and organizes them in the same hierarchy found on
the remote mirror
This commit also refactors lib/spack/spack/util/web.py to expose
functionality allowing other modules to read data from a url.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions