From ce7218acaed37ef1e5c06ea49f281b68f6df6bd5 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 12 Aug 2024 09:25:31 +0200 Subject: [PATCH] buildcache: fix hard-coded, outdated layout version (#45645) --- lib/spack/spack/cmd/buildcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py index dae2acdeb9..80d98a3755 100644 --- a/lib/spack/spack/cmd/buildcache.py +++ b/lib/spack/spack/cmd/buildcache.py @@ -813,7 +813,7 @@ def _push_oci( def extra_config(spec: Spec): spec_dict = spec.to_dict(hash=ht.dag_hash) - spec_dict["buildcache_layout_version"] = 1 + spec_dict["buildcache_layout_version"] = bindist.CURRENT_BUILD_CACHE_LAYOUT_VERSION spec_dict["binary_cache_checksum"] = { "hash_algorithm": "sha256", "hash": checksums[spec.dag_hash()].compressed_digest.digest,