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
4 changes: 2 additions & 2 deletions tasks/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ pub fn get_crate_dirs(sh: &Shell, packages: &[String]) -> Result<Vec<String>, Bo
// Extract directory path from the manifest path,
// e.g., "/path/to/repo/releases/Cargo.toml" -> "/path/to/repo/releases".
let dir_path = manifest_path.trim_end_matches("/Cargo.toml");

// Filter by package name if specified.
if !packages.is_empty() {
let package_name = package["name"].as_str()?;
if !packages.contains(&package_name.to_string()) {
return None;
}
}

Some(dir_path.to_string())
})
.collect();
Expand Down