summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2020-06-26 16:05:56 -0600
committerGitHub <noreply@github.com>2020-06-26 17:05:56 -0500
commitdfac09eade5c6ba0e42208701ae2206696d08105 (patch)
treec901298af550d74145572b84e2330a5dd468bb80 /share
parentc39983eb1a81c7c9133565e0d37f6a120dff97c6 (diff)
downloadspack-dfac09eade5c6ba0e42208701ae2206696d08105.tar.gz
spack-dfac09eade5c6ba0e42208701ae2206696d08105.tar.bz2
spack-dfac09eade5c6ba0e42208701ae2206696d08105.tar.xz
spack-dfac09eade5c6ba0e42208701ae2206696d08105.zip
Use json for buildcache index (#15002)
* Start moving toward a json buildcache index * Add spec and database index schemas * Add a schema for buildcache spec.yaml files * Provide a mode for database class to generate buildcache index * Update db and ci tests to validate object w/ new schema * Remove unused temporary upload-s3 command * Use database class to generate buildcache index * Do not generate index with each buildcache creation * Make buildcache index mode into a couple of constructor args to Database class * Use keyword args for _createtarball * Parse new json index when we get specs from buildcache Now that only one index file per mirror needs to be fetched in order to have all the concrete specs for binaries available on the mirror, we can just fetch and refresh the cached specs every time instead of needing to use the '-f' flag to force re-reading.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash23
1 files changed, 3 insertions, 20 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index eff9e15b2c..0b10802b6f 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -320,7 +320,7 @@ _spack() {
then
SPACK_COMPREPLY="-h --help -H --all-help --color -C --config-scope -d --debug --timestamp --pdb -e --env -D --env-dir -E --no-env --use-env-repo -k --insecure -l --enable-locks -L --disable-locks -m --mock -p --profile --sorted-profile --lines -v --verbose --stacktrace -V --version --print-shell-vars"
else
- SPACK_COMPREPLY="activate add arch blame build build-env buildcache cd checksum ci clean clone commands compiler compilers concretize config configure containerize create deactivate debug dependencies dependents deprecate dev-build diy docs edit env extensions external fetch find flake8 gc gpg graph help info install license list load location log-parse maintainers mirror module patch pkg providers pydoc python reindex remove rm repo resource restage setup spec stage test uninstall unload upload-s3 url verify versions view"
+ SPACK_COMPREPLY="activate add arch blame build build-env buildcache cd checksum ci clean clone commands compiler compilers concretize config configure containerize create deactivate debug dependencies dependents deprecate dev-build diy docs edit env extensions external fetch find flake8 gc gpg graph help info install license list load location log-parse maintainers mirror module patch pkg providers pydoc python reindex remove rm repo resource restage setup spec stage test uninstall unload url verify versions view"
fi
}
@@ -385,7 +385,7 @@ _spack_buildcache() {
_spack_buildcache_create() {
if $list_options
then
- SPACK_COMPREPLY="-h --help -r --rel -f --force -u --unsigned -a --allow-root -k --key -d --directory -m --mirror-name --mirror-url --no-rebuild-index -y --spec-yaml --only"
+ SPACK_COMPREPLY="-h --help -r --rel -f --force -u --unsigned -a --allow-root -k --key -d --directory -m --mirror-name --mirror-url --rebuild-index -y --spec-yaml --only"
else
_all_packages
fi
@@ -403,7 +403,7 @@ _spack_buildcache_install() {
_spack_buildcache_list() {
if $list_options
then
- SPACK_COMPREPLY="-h --help -l --long -L --very-long -v --variants -f --force -a --allarch"
+ SPACK_COMPREPLY="-h --help -l --long -L --very-long -v --variants -a --allarch"
else
_all_packages
fi
@@ -1478,23 +1478,6 @@ _spack_unload() {
fi
}
-_spack_upload_s3() {
- if $list_options
- then
- SPACK_COMPREPLY="-h --help"
- else
- SPACK_COMPREPLY="spec index"
- fi
-}
-
-_spack_upload_s3_spec() {
- SPACK_COMPREPLY="-h --help -s --spec -y --spec-yaml -b --base-dir -e --endpoint-url"
-}
-
-_spack_upload_s3_index() {
- SPACK_COMPREPLY="-h --help -e --endpoint-url"
-}
-
_spack_url() {
if $list_options
then