Skip to content

Commit

Permalink
Omit the toplevel package from the list of components
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Oct 26, 2023
1 parent 220ffc2 commit cd96562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cargo-cyclonedx/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ fn create_bom(package: &PackageId, dependencies: &PackageMap) -> Result<Bom, Gen

let components: Vec<_> = dependencies
.values()
.filter(|p| &p.id != package)
.map(|package| create_component(&package))
.collect();

Expand Down

0 comments on commit cd96562

Please sign in to comment.