Skip to content

Commit 0454c3b

Browse files
authored
Sort hashes in uv export output (#9237)
## Summary Closes #9225 ## Test Plan `cargo test`
1 parent 189cf6e commit 0454c3b

File tree

2 files changed

+101
-100
lines changed

2 files changed

+101
-100
lines changed

crates/uv-resolver/src/lock/requirements_txt.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ impl std::fmt::Display for RequirementsTxtExport<'_> {
263263
}
264264

265265
if self.hashes {
266-
let hashes = package.hashes();
266+
let mut hashes = package.hashes();
267+
hashes.sort_unstable();
267268
if !hashes.is_empty() {
268269
for hash in &hashes {
269270
writeln!(f, " \\")?;

0 commit comments

Comments
 (0)