buildcache: fix hard-coded, outdated layout version (#45645)

This commit is contained in:
Harmen Stoppels 2024-08-12 09:25:31 +02:00 committed by GitHub
parent 9e7183fb14
commit 7ddc886d6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -798,7 +798,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,