-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of Module/Package vs Distribution in name #2
Comments
I wanted to link up with a couple other threads along these lines for the
so that a common semantics can be worked out. |
In the next version of the module, I have made a change to allow the use of distribution instead of module name. Other improvements is the addition of a CLI (purl-tool see #3) and a helper that allows the PackageURL string to be converted to a URL for package download and repository (not all types are supported). |
Heya! I've been trying to figure out what a good PackageURL looks like, and have some thoughts posted in the CPAN::DistnameInfo ticket mentioned above. If you want to join the conversation, you're quite welcome! I'm primarily interested in making the CPAN Toolchain understand PURLs (with the intention of using these when generating SBOM objects), and I'm wondering if this effort is something you'd be interested in. 🙂 |
FWIW, I think having room for using packageurls for referring to module names makes completely sense, and is needed when using them to refer to (pre-resolution) dependencies. I'd vote for the following compromise, supporting both distribution names and module names:
|
I suggest to use this syntax for module name (without the "namespace"):
... and the "namespace" for the distribution package (the author):
But.. is necessary to remove this line in "URI::PackageURL": perl-URI-PackageURL/lib/URI/PackageURL.pm Line 53 in b134997
|
Here's a (complete as of today) list of CPAN ID's that share a name with a module – meaning there exists both a CPAN id and a module with that name:
I guess this is fine if we decide/assume there's never going to be a need for using PackageURLs for referring to authors/CPAN IDs. Meaning, I'm fine with this if you are! 😁 |
I have not seen Perl PURLs documented anywhere but in this package.
The term "package" in PURL more closely matches the term "distribution" in the CPAN instead of the term "module" or "package" in Perl.
I propose we (the Perl community) be much more consistent with other implementations to be distribution-based and not module-based.
Changes to keep backwards compatibility (Is this a priority?)
Note: This is ONLY valid for distributions where the primary package is also named the same as the distribution with changing "::" to "-". PAUSE allows the update of a distribution where the module inside does NOT have a version update.
The text was updated successfully, but these errors were encountered: