Skip to content

Commit

Permalink
fix: highlight pypi deps in pixi list (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanth-manchala authored Mar 4, 2024
1 parent 83fd070 commit 462b64f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cli/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,17 @@ pub async fn execute(args: Args) -> miette::Result<()> {
.unwrap_or_default();

// Get the explicit project dependencies
let project_dependency_names = environment
let mut project_dependency_names = environment
.dependencies(None, Some(platform))
.names()
.map(|p| p.as_source().to_string())
.collect_vec();

project_dependency_names.extend(
environment
.pypi_dependencies(Some(platform))
.into_iter()
.map(|(name, _)| name.as_source().to_string()),
);
// Convert the list of package record to specific output format
let mut packages_to_output = locked_deps
.iter()
Expand Down

0 comments on commit 462b64f

Please sign in to comment.