Skip to content

Commit

Permalink
Add TypeJulia and a simple test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Octogonapus committed Jun 20, 2023
1 parent 358f100 commit 5a8e6f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packageurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions testdata/test-suite-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,17 @@
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "valid julia purl",
"purl": "pkg:julia/[email protected]",
"canonical_purl": "pkg:julia/[email protected]",
"type": "julia",
"namespace": "",
"name": "Dates",
"version": "1.9.0",
"qualifiers": null,
"subpath": null,
"is_invalid": false
}
]

0 comments on commit 5a8e6f9

Please sign in to comment.