diff --git a/crates/distribution-filename/src/build_tag.rs b/crates/distribution-filename/src/build_tag.rs index d315cbf13..e5b18d587 100644 --- a/crates/distribution-filename/src/build_tag.rs +++ b/crates/distribution-filename/src/build_tag.rs @@ -34,7 +34,7 @@ pub enum BuildTagError { )] #[archive(check_bytes)] #[archive_attr(derive(Debug))] -pub struct BuildTag(u32, Option>); +pub struct BuildTag(u64, Option>); impl FromStr for BuildTag { type Err = BuildTagError; @@ -58,6 +58,6 @@ impl FromStr for BuildTag { None => (s, None), }; - Ok(BuildTag(prefix.parse::()?, suffix.map(Arc::from))) + Ok(BuildTag(prefix.parse::()?, suffix.map(Arc::from))) } } diff --git a/crates/distribution-filename/src/snapshots/distribution_filename__wheel__tests__ok_build_tag.snap b/crates/distribution-filename/src/snapshots/distribution_filename__wheel__tests__ok_build_tag.snap index 785d1055c..99a93741e 100644 --- a/crates/distribution-filename/src/snapshots/distribution_filename__wheel__tests__ok_build_tag.snap +++ b/crates/distribution-filename/src/snapshots/distribution_filename__wheel__tests__ok_build_tag.snap @@ -1,6 +1,6 @@ --- source: crates/distribution-filename/src/wheel.rs -expression: "WheelFilename::from_str(\"foo-1.2.3-12-python-abi-platform.whl\")" +expression: "WheelFilename::from_str(\"foo-1.2.3-202206090410-python-abi-platform.whl\")" --- Ok( WheelFilename { @@ -10,7 +10,7 @@ Ok( version: "1.2.3", build_tag: Some( BuildTag( - 12, + 202206090410, None, ), ), diff --git a/crates/distribution-filename/src/wheel.rs b/crates/distribution-filename/src/wheel.rs index 7e8a1aff6..5c6a5afef 100644 --- a/crates/distribution-filename/src/wheel.rs +++ b/crates/distribution-filename/src/wheel.rs @@ -314,7 +314,7 @@ mod tests { #[test] fn ok_build_tag() { insta::assert_debug_snapshot!(WheelFilename::from_str( - "foo-1.2.3-12-python-abi-platform.whl" + "foo-1.2.3-202206090410-python-abi-platform.whl" )); } diff --git a/crates/uv-cache/src/lib.rs b/crates/uv-cache/src/lib.rs index 73c840b2a..555585aab 100644 --- a/crates/uv-cache/src/lib.rs +++ b/crates/uv-cache/src/lib.rs @@ -644,7 +644,7 @@ impl CacheBucket { Self::FlatIndex => "flat-index-v0", Self::Git => "git-v0", Self::Interpreter => "interpreter-v2", - Self::Simple => "simple-v8", + Self::Simple => "simple-v9", Self::Wheels => "wheels-v1", Self::Archive => "archive-v0", Self::Environments => "environments-v0",