Skip to content

Commit

Permalink
fix: Check for pypi-dependencies before ammending the pypi purls (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts authored Jan 12, 2024
1 parent cb23072 commit 0b92af9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lock_file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,10 @@ async fn resolve_platform(
)
.await?;

// Add purl's for the conda packages that are also available as pypi packages
pypi::amend_pypi_purls(&mut records).await?;
// Add purl's for the conda packages that are also available as pypi packages if we need them.
if project.manifest.has_pypi_dependencies() {
pypi::amend_pypi_purls(&mut records).await?;
}

// Update lock file
let mut locked_packages = LockedPackagesBuilder::new(platform);
Expand Down

0 comments on commit 0b92af9

Please sign in to comment.