From 29a638403c0c20d089f2bdd52930c57fcd0e9267 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Tue, 10 Dec 2024 09:56:56 +0100 Subject: [PATCH] fix(helper-cli): Add a default value for `Dependency.purl` 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] b1a157d7dfa8889cc1a7d143f04ee514e58443da Signed-off-by: Frank Viernau --- .../commands/CreateAnalyzerResultFromPackageListCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper-cli/src/main/kotlin/commands/CreateAnalyzerResultFromPackageListCommand.kt b/helper-cli/src/main/kotlin/commands/CreateAnalyzerResultFromPackageListCommand.kt index f19879bd07e14..5bbb01a78c363 100644 --- a/helper-cli/src/main/kotlin/commands/CreateAnalyzerResultFromPackageListCommand.kt +++ b/helper-cli/src/main/kotlin/commands/CreateAnalyzerResultFromPackageListCommand.kt @@ -147,7 +147,7 @@ private data class PackageList( private data class Dependency( val id: Identifier, - val purl: String?, + val purl: String? = null, val vcs: Vcs? = null, val sourceArtifact: SourceArtifact? = null, val isExcluded: Boolean = false,