这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions crates/turborepo-lib/src/run/scope/change_detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,14 @@ impl<'a> GitChangeDetector for ScopeChangeDetector<'a> {
}
PackageChanges::Some(packages) => {
debug!(
"determined {} packages changed: {packages:?}",
packages.len()
"{} packages changed: {:?}",
packages.len(),
&packages
.iter()
.map(|x| x.name.to_string())
.collect::<Vec<String>>()
Comment on lines +143 to +146
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sort also? or is packages already sorted?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, sorting is good here. Packages are stored in a hash set so just iterating over them won't yield a stable order.

);

Ok(packages
.iter()
.map(|package| package.name.to_owned())
Expand Down