Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
rust: crate_tool: Sort patches directory before using
Browse files Browse the repository at this point in the history
Patches sometimes intentionally have `0001`, `0002`, etc. or other
alphabetization methods to indicate what order patches should be applied
in. Previously, we gathered up patches in directory-walk order, which
sometimes resulted in patches not applying.

Bug: 388276112
Test: ./crate_tool regenerate rustc-demangle-capi
Change-Id: Ic66b10024908a86dcf3ec13d0fb901333696966f
  • Loading branch information
maurer committed Jan 7, 2025
1 parent 4a93f96 commit 7109e74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/external_crates/crate_tool/src/managed_crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ impl<State: ManagedCrateState> ManagedCrate<State> {
patches.push(entry.path());
}
}
patches.sort();

Ok(patches)
}
Expand Down

0 comments on commit 7109e74

Please sign in to comment.