Skip to content

Commit

Permalink
Actually wire up writing v1.5
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
  • Loading branch information
Shnatsel committed Jun 2, 2024
1 parent 8ababe9 commit 2de6fe0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cargo-cyclonedx/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ impl GeneratedSbom {
match spec_version {
V1_3 => bom.output_as_json_v1_3(&mut writer),
V1_4 => bom.output_as_json_v1_4(&mut writer),
V1_5 => bom.output_as_json_v1_5(&mut writer),
_ => unimplemented!(),
}
.map_err(SbomWriterError::JsonWriteError)?;
Expand All @@ -740,6 +741,7 @@ impl GeneratedSbom {
match spec_version {
V1_3 => bom.output_as_xml_v1_3(&mut writer),
V1_4 => bom.output_as_xml_v1_4(&mut writer),
V1_5 => bom.output_as_xml_v1_5(&mut writer),
_ => unimplemented!(),
}
.map_err(SbomWriterError::XmlWriteError)?;
Expand Down

0 comments on commit 2de6fe0

Please sign in to comment.