From 4facfbd764ca1cee63bafda8cdfa87fff082b06b Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Wed, 18 Mar 2026 16:14:52 +0000 Subject: [PATCH] Recognize sparse+http://.. as a custom registry Signed-off-by: Sergey "Shnatsel" Davidoff --- cargo-cyclonedx/src/purl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cargo-cyclonedx/src/purl.rs b/cargo-cyclonedx/src/purl.rs index 4d600354..430386d4 100644 --- a/cargo-cyclonedx/src/purl.rs +++ b/cargo-cyclonedx/src/purl.rs @@ -22,7 +22,7 @@ pub fn get_purl( Some(("git", _git_path)) => { builder = builder.with_qualifier("vcs_url", source_to_vcs_url(source))? } - Some(("registry", registry_url)) => { + Some(("registry" | "sparse", registry_url)) => { builder = builder.with_qualifier("repository_url", registry_url)? } Some((source, _path)) => log::warn!("Unknown source kind {}", source),