From b31d08c6835ed5496420b55053c931ac6ae80b81 Mon Sep 17 00:00:00 2001 From: konsti Date: Sat, 17 May 2025 02:17:23 +0200 Subject: [PATCH] Bump simple cache bucket to v16 (#13498) We broke the rkyv deserialization in https://github.com/astral-sh/uv/commit/e70cf25ea72c94502d08637474e9e4ad576bf342#diff-348b24d7a84672ab2873833988156191995ff467619a77f548adbd9808549999L30-R41 by placing `.tar.bz2` in the position of `.tar.gz`. We need to invalidate the cache bucket. Fixes #13492 --- crates/uv-cache/src/lib.rs | 2 +- crates/uv/tests/it/cache_clean.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv-cache/src/lib.rs b/crates/uv-cache/src/lib.rs index bdbd6f328..e05b3c7ed 100644 --- a/crates/uv-cache/src/lib.rs +++ b/crates/uv-cache/src/lib.rs @@ -986,7 +986,7 @@ impl CacheBucket { Self::Interpreter => "interpreter-v4", // Note that when bumping this, you'll also need to bump it // in `crates/uv/tests/it/cache_clean.rs`. - Self::Simple => "simple-v15", + Self::Simple => "simple-v16", // Note that when bumping this, you'll also need to bump it // in `crates/uv/tests/it/cache_prune.rs`. Self::Wheels => "wheels-v5", diff --git a/crates/uv/tests/it/cache_clean.rs b/crates/uv/tests/it/cache_clean.rs index 3e555cfe2..7a78346f8 100644 --- a/crates/uv/tests/it/cache_clean.rs +++ b/crates/uv/tests/it/cache_clean.rs @@ -51,7 +51,7 @@ fn clean_package_pypi() -> Result<()> { // Assert that the `.rkyv` file is created for `iniconfig`. let rkyv = context .cache_dir - .child("simple-v15") + .child("simple-v16") .child("pypi") .child("iniconfig.rkyv"); assert!( @@ -125,7 +125,7 @@ fn clean_package_index() -> Result<()> { // Assert that the `.rkyv` file is created for `iniconfig`. let rkyv = context .cache_dir - .child("simple-v15") + .child("simple-v16") .child("index") .child("e8208120cae3ba69") .child("iniconfig.rkyv");