summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-10-15 17:23:16 -0700
committerGitHub <noreply@github.com>2020-10-15 17:23:16 -0700
commit7a6268593ce957a54bbe8fbcb7b3e1ea1b71ee2c (patch)
tree2c0a02fbce875022ad4af6eca844646be0a99dea /share
parent2ed39dfd8eeaf34757cabe1bb761ffc9057ca35f (diff)
downloadspack-7a6268593ce957a54bbe8fbcb7b3e1ea1b71ee2c.tar.gz
spack-7a6268593ce957a54bbe8fbcb7b3e1ea1b71ee2c.tar.bz2
spack-7a6268593ce957a54bbe8fbcb7b3e1ea1b71ee2c.tar.xz
spack-7a6268593ce957a54bbe8fbcb7b3e1ea1b71ee2c.zip
Environments: specify packages for developer builds (#15256)
* allow environments to specify dev-build packages * spack develop and spack undevelop commands * never pull dev-build packges from bincache * reinstall dev_specs when code has changed; reinstall dependents too * preserve dev info paths and versions in concretization as special variant * move install overwrite transaction into installer * move dev-build argument handling to package.do_install now that specs are dev-aware, package.do_install can add necessary args (keep_stage=True, use_cache=False) to dev builds. This simplifies driving logic in cmd and env._install * allow 'any' as wildcard for variants * spec: allow anonymous dependencies raise an error when constraining by or normalizing an anonymous dep refactor concretize_develop to remove dev_build variant refactor tests to check for ^dev_path=any instead of +dev_build * fix variant class hierarchy
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash20
1 files changed, 19 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 6b4b83b489..17bac4034f 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-env buildcache cd checksum ci clean clone commands compiler compilers concretize config containerize create deactivate debug dependencies dependents deprecate dev-build 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"
+ SPACK_COMPREPLY="activate add arch blame build-env buildcache cd checksum ci clean clone commands compiler compilers concretize config containerize create deactivate debug dependencies dependents deprecate dev-build develop 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 undevelop uninstall unload url verify versions view"
fi
}
@@ -725,6 +725,15 @@ _spack_dev_build() {
fi
}
+_spack_develop() {
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help -p --path --no-clone --clone -f --force"
+ else
+ _all_packages
+ fi
+}
+
_spack_docs() {
SPACK_COMPREPLY="-h --help"
}
@@ -1482,6 +1491,15 @@ _spack_test() {
fi
}
+_spack_undevelop() {
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help -a --all"
+ else
+ _all_packages
+ fi
+}
+
_spack_uninstall() {
if $list_options
then