From 5a8e6f90edc607b2f6b8de02eb433252ebf49ff2 Mon Sep 17 00:00:00 2001 From: Octogonapus Date: Mon, 22 May 2023 18:55:35 -0400 Subject: [PATCH] Add TypeJulia and a simple test. --- packageurl.go | 2 ++ testdata/test-suite-data.json | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/packageurl.go b/packageurl.go index 771ddc3..d319d6c 100644 --- a/packageurl.go +++ b/packageurl.go @@ -93,6 +93,8 @@ var ( TypeHuggingface = "huggingface" // TypeMLflow is pkg:mlflow purl. TypeMLFlow = "mlflow" + // TypeJulia is a pkg:julia purl + TypeJulia = "julia" ) // Qualifier represents a single key=value qualifier in the package url diff --git a/testdata/test-suite-data.json b/testdata/test-suite-data.json index 8b0485f..edf7ce6 100644 --- a/testdata/test-suite-data.json +++ b/testdata/test-suite-data.json @@ -550,5 +550,17 @@ "qualifiers": null, "subpath": null, "is_invalid": false + }, + { + "description": "valid julia purl", + "purl": "pkg:julia/Dates@1.9.0", + "canonical_purl": "pkg:julia/Dates@1.9.0", + "type": "julia", + "namespace": "", + "name": "Dates", + "version": "1.9.0", + "qualifiers": null, + "subpath": null, + "is_invalid": false } ]