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.
This commit is contained in:
parent
762893d4a6
commit
d424d0e54e
@ -202,6 +202,12 @@ def display_env(env, args, decorator):
|
|||||||
|
|
||||||
|
|
||||||
def find(parser, args):
|
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:
|
if args.bootstrap:
|
||||||
bootstrap_store_path = spack.bootstrap.store_path()
|
bootstrap_store_path = spack.bootstrap.store_path()
|
||||||
with spack.bootstrap.ensure_bootstrap_configuration():
|
with spack.bootstrap.ensure_bootstrap_configuration():
|
||||||
|
@ -333,3 +333,8 @@ def test_find_loaded(database, working_env):
|
|||||||
output = find('--loaded')
|
output = find('--loaded')
|
||||||
expected = find()
|
expected = find()
|
||||||
assert output == expected
|
assert output == expected
|
||||||
|
|
||||||
|
|
||||||
|
def test_bootstrap_deprecated():
|
||||||
|
output = find('--bootstrap')
|
||||||
|
assert "`spack find --bootstrap` is deprecated" in output
|
||||||
|
Loading…
Reference in New Issue
Block a user