summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-11-19 16:09:34 +0100
committerGitHub <noreply@github.com>2022-11-19 16:09:34 +0100
commit45b4cedb7e66dbccb5574657738f72ed700197e5 (patch)
tree198cdafc933bf7095aff413efb10cf473176e55c /lib
parent6d0a8f78b2e69e999b3b99e076a3b771c8f90769 (diff)
downloadspack-45b4cedb7e66dbccb5574657738f72ed700197e5.tar.gz
spack-45b4cedb7e66dbccb5574657738f72ed700197e5.tar.bz2
spack-45b4cedb7e66dbccb5574657738f72ed700197e5.tar.xz
spack-45b4cedb7e66dbccb5574657738f72ed700197e5.zip
spack find: remove deprecated "--bootstrap" option (#34015)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/find.py24
-rw-r--r--lib/spack/spack/test/cmd/find.py5
2 files changed, 0 insertions, 29 deletions
diff --git a/lib/spack/spack/cmd/find.py b/lib/spack/spack/cmd/find.py
index 0b974539af..9e4b9865e3 100644
--- a/lib/spack/spack/cmd/find.py
+++ b/lib/spack/spack/cmd/find.py
@@ -140,13 +140,6 @@ def setup_parser(subparser):
subparser.add_argument("--start-date", help="earliest date of installation [YYYY-MM-DD]")
subparser.add_argument("--end-date", help="latest date of installation [YYYY-MM-DD]")
- subparser.add_argument(
- "-b",
- "--bootstrap",
- action="store_true",
- help="show software in the internal bootstrap store",
- )
-
arguments.add_common_arguments(subparser, ["constraint"])
@@ -251,23 +244,6 @@ def display_env(env, args, decorator, results):
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}"'
- tty.msg(msg.format(bootstrap_store_path))
- _find(parser, args)
- return
- _find(parser, args)
-
-
-def _find(parser, args):
q_args = query_arguments(args)
results = args.specs(**q_args)
diff --git a/lib/spack/spack/test/cmd/find.py b/lib/spack/spack/test/cmd/find.py
index 653e070e1a..37522ababc 100644
--- a/lib/spack/spack/test/cmd/find.py
+++ b/lib/spack/spack/test/cmd/find.py
@@ -373,8 +373,3 @@ 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