Skip to content

Commit

Permalink
chore: bump Rust toolchain to 1.81.0 (#2227)
Browse files Browse the repository at this point in the history
The Rust 1.81 toolchain fixed the hashing of Path objects. Previously,
paths were hashed equally wether they contained a slash or not. This is
not the case anymore which is definitely fixing a bug.

However, it does break existing hashes in the task cache or in lockfiles
for editable installs, which is unfortunate for us.

---------

Co-authored-by: Tim de Jager <[email protected]>
  • Loading branch information
wolfv and tdejager authored Oct 8, 2024
1 parent 82a3072 commit fb2438e
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 69 deletions.
132 changes: 66 additions & 66 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ toml-lint = "taplo lint --verbose **/pixi.toml"
git = ">=2.46.0,<3"
openssl = "3.*"
pkg-config = "0.29.*"
rust = "~=1.80.0"
rust = "~=1.81.0"
[feature.build.target.linux-64.dependencies]
clang = ">=18.1.8,<19.0"
compilers = ">=1.6.0"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.80.0
1.81.0
2 changes: 1 addition & 1 deletion src/task/file_hashes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ mod test {
let mut hasher = Xxh3::new();
hashes.hash(&mut hasher);
let s = format!("{:x}", hasher.finish());
assert_eq!(s, "be05bb5d7c6e8e6");
assert_eq!(s, "722d374e94c4dcfc");
}

let hashes = FileHashes::from_files(target_dir.path(), vec!["src/"])
Expand Down

0 comments on commit fb2438e

Please sign in to comment.