diff options
author | Todd Gamblin <gamblin2@llnl.gov> | 2022-03-05 21:41:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-05 21:41:18 -0800 |
commit | d424d0e54e10bcd8602ebcd10fe6121eabd29b9a (patch) | |
tree | 716c6ccbc6c75ddf4de87d098a0fa012632f99ec | |
parent | 762893d4a6c1df68229cb75a867ca737dd7bd1e7 (diff) | |
download | spack-d424d0e54e10bcd8602ebcd10fe6121eabd29b9a.tar.gz spack-d424d0e54e10bcd8602ebcd10fe6121eabd29b9a.tar.bz2 spack-d424d0e54e10bcd8602ebcd10fe6121eabd29b9a.tar.xz spack-d424d0e54e10bcd8602ebcd10fe6121eabd29b9a.zip |
find: deprecate `spack find -bootstrap` for `spack -bootstrap find` (#29152)
Since adding the `spack --bootstrap` argument we don't need `spack find --bootstrap`
anymore. Deprecate it.
-rw-r--r-- | lib/spack/spack/cmd/find.py | 6 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/find.py | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/find.py b/lib/spack/spack/cmd/find.py index cabdd33499..87bd164932 100644 --- a/lib/spack/spack/cmd/find.py +++ b/lib/spack/spack/cmd/find.py @@ -203,6 +203,12 @@ def display_env(env, args, decorator): def find(parser, args): if args.bootstrap: + tty.warn( + "`spack find --bootstrap` is deprecated and will be removed in v0.19.", + "Use `spack --bootstrap find` instead." + ) + + if args.bootstrap: bootstrap_store_path = spack.bootstrap.store_path() with spack.bootstrap.ensure_bootstrap_configuration(): msg = 'Showing internal bootstrap store at "{0}"' diff --git a/lib/spack/spack/test/cmd/find.py b/lib/spack/spack/test/cmd/find.py index 8b8bf7a273..eb512a15cb 100644 --- a/lib/spack/spack/test/cmd/find.py +++ b/lib/spack/spack/test/cmd/find.py @@ -333,3 +333,8 @@ def test_find_loaded(database, working_env): output = find('--loaded') expected = find() assert output == expected + + +def test_bootstrap_deprecated(): + output = find('--bootstrap') + assert "`spack find --bootstrap` is deprecated" in output |