Skip to content

Commit

Permalink
chore: only rely on the package graph
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed Aug 21, 2023
1 parent 086c1e4 commit cf7b84a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/cyclone_dx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ use serde_cyclonedx::cyclonedx::v_1_4::{

const CURRENT_SPEC_VERSION: &str = "1.4";

pub fn dump(
package_graph: &crate::nix::PackageGraph,
derivations: &crate::nix::Derivations,
packages: &crate::nix::Packages,
) -> String {
pub fn dump(package_graph: &crate::nix::PackageGraph) -> String {
let mut metadata = Metadata::default();
let now = SystemTime::now();
let now: DateTime<Utc> = now.into();
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn main() -> Result<std::process::ExitCode, Box<dyn std::error::Error>> {
log::info!("Creating the SBOM");
match output_format {
crate::sbom::Format::CycloneDX => {
let output = crate::cyclone_dx::dump(&package_graph, &derivations, &packages);
let output = crate::cyclone_dx::dump(&package_graph);
println!("{}", &output);
}
crate::sbom::Format::SPDX => {
Expand Down

0 comments on commit cf7b84a

Please sign in to comment.