Skip to content

Conversation

@ErniGH
Copy link
Contributor

@ErniGH ErniGH commented Sep 25, 2025

Changelog: Fix: Describe here your pull request
Docs: https://github.com/conan-io/docs/pull/XXXX

Add the pref and qualifiers to the purl
Add namespace support to the purl

close: #18971

if hasattr(component, "conanfile"):
purl_qualifier = "".join(f"&{qualifier}={component.conanfile.settings.get_safe(qualifier)}" for qualifier in qualifiers)
return (f"pkg:conan/{component.name}@{component.ref.version}"
f"?rref={component.ref.revision}&pref={component.pref.package_id}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have discussed that this should be rrev, but we have decided to do that in a different PR

@ErniGH ErniGH marked this pull request as ready for review October 2, 2025 10:15
@memsharded
Copy link
Member

There is a ticket in the purl-spec org to check with the experts there: package-url/purl-spec#705

@ErniGH ErniGH changed the title SBOM - Add the pref and qualifiers to the purl SBOM - Add the namespace, pref and qualifiers to the purl Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[question] SBOM Optional PURL fields

3 participants