Skip to content

Commit 5cd864b

Browse files
committed
Sort crate dependencies before adding to index
1 parent 9d0f916 commit 5cd864b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controllers/krate/publish.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,9 @@ pub fn add_dependencies(
409409
})
410410
.collect::<Result<Vec<_>, _>>()?;
411411

412-
let (git_deps, new_dependencies): (Vec<_>, Vec<_>) =
412+
let (mut git_deps, new_dependencies): (Vec<_>, Vec<_>) =
413413
git_and_new_dependencies.into_iter().unzip();
414+
git_deps.sort();
414415

415416
insert_into(dependencies)
416417
.values(&new_dependencies)

0 commit comments

Comments
 (0)