From 8e8b1ac97b3fb601b51fc2f5d440c63f2982df92 Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 16 May 2025 22:40:31 +0200 Subject: [PATCH 1/2] Bump simple cache bucket to v16 We broke the rkiv deserialization in https://github.com/astral-sh/uv/commit/e70cf25ea72c94502d08637474e9e4ad576bf342#diff-348b24d7a84672ab2873833988156191995ff467619a77f548adbd9808549999L30-R41 by placing `.tar.bz2` in the position of `.tar.gz`. Fixes #13492 --- crates/uv-cache/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-cache/src/lib.rs b/crates/uv-cache/src/lib.rs index bdbd6f32884bf..e05b3c7edb4f3 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", From a2c06f5e247a9b83c37f7accdea3b8f8d7b888fd Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 16 May 2025 23:19:10 +0200 Subject: [PATCH 2/2] . --- crates/uv/tests/it/cache_clean.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv/tests/it/cache_clean.rs b/crates/uv/tests/it/cache_clean.rs index 3e555cfe2f2cc..7a78346f8ce13 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");