Skip to content

Commit d4d764c

Browse files
authored
Merge pull request #853 from Shnatsel/custom-registries
Recognize sparse+http://.. as a custom registry
2 parents ba2a22a + 4facfbd commit d4d764c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cargo-cyclonedx/src/purl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn get_purl(
2222
Some(("git", _git_path)) => {
2323
builder = builder.with_qualifier("vcs_url", source_to_vcs_url(source))?
2424
}
25-
Some(("registry", registry_url)) => {
25+
Some(("registry" | "sparse", registry_url)) => {
2626
builder = builder.with_qualifier("repository_url", registry_url)?
2727
}
2828
Some((source, _path)) => log::warn!("Unknown source kind {}", source),

0 commit comments

Comments
 (0)