summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPaul Ferrell <51765748+Paul-Ferrell@users.noreply.github.com>2021-02-24 11:57:50 -0700
committerGitHub <noreply@github.com>2021-02-24 10:57:50 -0800
commite85a8cde37fbc1568a12d89b3de372bdfb9c8d93 (patch)
treebe15a138629cf8bc669080abe405bc69fe5ebb13 /share
parentd65002a6761cd2d745b76eae0592a50056255b7f (diff)
downloadspack-e85a8cde37fbc1568a12d89b3de372bdfb9c8d93.tar.gz
spack-e85a8cde37fbc1568a12d89b3de372bdfb9c8d93.tar.bz2
spack-e85a8cde37fbc1568a12d89b3de372bdfb9c8d93.tar.xz
spack-e85a8cde37fbc1568a12d89b3de372bdfb9c8d93.zip
Config prefer upstream (#21487)
This allows for quickly configuring a spack install/env to use upstream packages by default. This is particularly important when upstreaming from a set of officially supported spack installs on a production cluster. By configuring such that package preferences match the upstream, you ensure maximal reuse of existing package installations.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 62829d474a..3a35fa71a4 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -587,7 +587,7 @@ _spack_config() {
then
SPACK_COMPREPLY="-h --help --scope"
else
- SPACK_COMPREPLY="get blame edit list add remove rm update revert"
+ SPACK_COMPREPLY="get blame edit list add prefer-upstream remove rm update revert"
fi
}
@@ -631,6 +631,10 @@ _spack_config_add() {
fi
}
+_spack_config_prefer_upstream() {
+ SPACK_COMPREPLY="-h --help --local"
+}
+
_spack_config_remove() {
if $list_options
then