spack external find: change default behavior (#29031)

See https://github.com/spack/spack/issues/25353#issuecomment-1041868116

This commit changes the default behavior of
```
$ spack external find
```
from searching all the possible packages Spack knows about to
search only for the ones tagged as being a "build-tool".

It also introduces a `--all` option to restore the old behavior.
This commit is contained in:
Massimiliano Culpo
2022-02-18 19:51:01 +01:00
committed by GitHub
parent 2ed52d32c7
commit 7fd94fc4bc
23 changed files with 63 additions and 8 deletions

View File

@@ -1024,7 +1024,7 @@ _spack_external() {
_spack_external_find() {
if $list_options
then
SPACK_COMPREPLY="-h --help --not-buildable --scope -t --tag"
SPACK_COMPREPLY="-h --help --not-buildable --scope --all -t --tag"
else
_all_packages
fi