summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-05-26 16:35:20 +0200
committerGitHub <noreply@github.com>2022-05-26 14:35:20 +0000
commit0636fdbfefecb404494fe6e2aed6d576b2196373 (patch)
tree445e2cc524b8aed896c537d5236c588b178e4893 /lib
parent85e13260cf2fc969daaf9bf6589b5a07255e074f (diff)
downloadspack-0636fdbfefecb404494fe6e2aed6d576b2196373.tar.gz
spack-0636fdbfefecb404494fe6e2aed6d576b2196373.tar.bz2
spack-0636fdbfefecb404494fe6e2aed6d576b2196373.tar.xz
spack-0636fdbfefecb404494fe6e2aed6d576b2196373.zip
Remove the warning that Spack prints at each spec (#30872)
Add instead a warning box in the documentation
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/binary_caches.rst7
-rw-r--r--lib/spack/spack/binary_distribution.py3
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/spack/docs/binary_caches.rst b/lib/spack/docs/binary_caches.rst
index 33fc61a96a..7c41485df8 100644
--- a/lib/spack/docs/binary_caches.rst
+++ b/lib/spack/docs/binary_caches.rst
@@ -50,6 +50,13 @@ build cache files for the "ninja" spec:
Note that the targeted spec must already be installed. Once you have a build cache,
you can add it as a mirror, discussed next.
+.. warning::
+
+ Spack improved the format used for binary caches in v0.18. The entire v0.18 series
+ will be able to verify and install binary caches both in the new and in the old format.
+ Support for using the old format is expected to end in v0.19, so we advise users to
+ recreate relevant buildcaches using Spack v0.18 or higher.
+
---------------------------------------
Finding or installing build cache files
---------------------------------------
diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py
index fb4c6ce472..a0b0e75b83 100644
--- a/lib/spack/spack/binary_distribution.py
+++ b/lib/spack/spack/binary_distribution.py
@@ -1600,9 +1600,6 @@ def extract_tarball(spec, download_result, allow_root=False, unsigned=False,
# Handle the older buildcache layout where the .spack file
# contains a spec json/yaml, maybe an .asc file (signature),
# and another tarball containing the actual install tree.
- tty.warn("This binary package uses a deprecated layout, "
- "and support for it will eventually be removed "
- "from spack.")
tmpdir = tempfile.mkdtemp()
try:
tarfile_path = _extract_inner_tarball(