summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/environments.rst2
-rw-r--r--lib/spack/spack/cmd/buildcache.py23
-rw-r--r--lib/spack/spack/test/cmd/buildcache.py5
3 files changed, 1 insertions, 29 deletions
diff --git a/lib/spack/docs/environments.rst b/lib/spack/docs/environments.rst
index 726c2bdf4b..ffa5e5f3c3 100644
--- a/lib/spack/docs/environments.rst
+++ b/lib/spack/docs/environments.rst
@@ -1316,7 +1316,7 @@ index once every package is pushed. Note how this target uses the generated
example/push/%: example/install/%
@mkdir -p $(dir $@)
$(info About to push $(SPEC) to a buildcache)
- $(SPACK) -e . buildcache push --allow-root --only=package $(BUILDCACHE_DIR) /$(HASH)
+ $(SPACK) -e . buildcache push --only=package $(BUILDCACHE_DIR) /$(HASH)
@touch $@
push: $(addprefix example/push/,$(example/SPACK_PACKAGE_IDS))
diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py
index dae2acdeb9..f43578257a 100644
--- a/lib/spack/spack/cmd/buildcache.py
+++ b/lib/spack/spack/cmd/buildcache.py
@@ -70,12 +70,6 @@ def setup_parser(subparser: argparse.ArgumentParser):
push = subparsers.add_parser("push", aliases=["create"], help=push_fn.__doc__)
push.add_argument("-f", "--force", action="store_true", help="overwrite tarball if it exists")
- push.add_argument(
- "--allow-root",
- "-a",
- action="store_true",
- help="allow install root string in binary files after RPATH substitution",
- )
push_sign = push.add_mutually_exclusive_group(required=False)
push_sign.add_argument(
"--unsigned",
@@ -190,10 +184,6 @@ def setup_parser(subparser: argparse.ArgumentParser):
keys.add_argument("-f", "--force", action="store_true", help="force new download of keys")
keys.set_defaults(func=keys_fn)
- preview = subparsers.add_parser("preview", help=preview_fn.__doc__)
- arguments.add_common_arguments(preview, ["installed_specs"])
- preview.set_defaults(func=preview_fn)
-
# Check if binaries need to be rebuilt on remote mirror
check = subparsers.add_parser("check", help=check_fn.__doc__)
check.add_argument(
@@ -404,11 +394,6 @@ def push_fn(args):
else:
roots = spack.cmd.require_active_env(cmd_name="buildcache push").concrete_roots()
- if args.allow_root:
- tty.warn(
- "The flag `--allow-root` is the default in Spack 0.21, will be removed in Spack 0.22"
- )
-
mirror: spack.mirror.Mirror = args.mirror
# Check if this is an OCI image.
@@ -960,14 +945,6 @@ def keys_fn(args):
bindist.get_keys(args.install, args.trust, args.force)
-def preview_fn(args):
- """analyze an installed spec and reports whether executables and libraries are relocatable"""
- tty.warn(
- "`spack buildcache preview` is deprecated since `spack buildcache push --allow-root` is "
- "now the default. This command will be removed in Spack 0.22"
- )
-
-
def check_fn(args: argparse.Namespace):
"""check specs against remote binary mirror(s) to see if any need to be rebuilt
diff --git a/lib/spack/spack/test/cmd/buildcache.py b/lib/spack/spack/test/cmd/buildcache.py
index df4fa72a85..b634e37116 100644
--- a/lib/spack/spack/test/cmd/buildcache.py
+++ b/lib/spack/spack/test/cmd/buildcache.py
@@ -48,11 +48,6 @@ def mock_get_specs_multiarch(database, monkeypatch):
monkeypatch.setattr(spack.binary_distribution, "update_cache_and_get_specs", lambda: specs)
-def test_buildcache_preview_just_runs():
- # TODO: remove in Spack 0.21
- buildcache("preview", "mpileaks")
-
-
@pytest.mark.db
@pytest.mark.regression("13757")
def test_buildcache_list_duplicates(mock_get_specs, capsys):