Skip to content

Commit

Permalink
fix(helper-cli): Add a default value for Dependency.purl
Browse files Browse the repository at this point in the history
The recent addition of `dependency.purl` [1] made providing that `purl`
mandatory. That should have been optional so that the change is
non-breaking. Fix that by adding a default value.

[1] b1a157d

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Dec 10, 2024
1 parent 097eb5d commit 9486c9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private data class PackageList(

private data class Dependency(
val id: Identifier,
val purl: String?,
val purl: String? = null,

Check warning on line 150 in helper-cli/src/main/kotlin/commands/CreateAnalyzerResultFromPackageListCommand.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/commands/CreateAnalyzerResultFromPackageListCommand.kt#L150

Added line #L150 was not covered by tests
val vcs: Vcs? = null,
val sourceArtifact: SourceArtifact? = null,
val isExcluded: Boolean = false,
Expand Down

0 comments on commit 9486c9c

Please sign in to comment.