-
Notifications
You must be signed in to change notification settings - Fork 214
Add virtual type
#450
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
base: main
Are you sure you want to change the base?
Add virtual type
#450
Conversation
PURL-TYPES.rst
Outdated
|
|
||
| - ``compiler``: for toolchains that implement a language standard. | ||
|
|
||
| - The ``name`` must correspond to the identifier of the language. Common examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can already imagine the purl-community fighting over well-known "names".
too much ambiguity.
lets say, i want to have a PURL that fits to all java runtime environments that are compatible with java 17. what would be my PURL?
is it java? is it JRE? uppercase/lowercase?
what about c++? why is the example using cxx? why not cpp? or even c%2B%2B?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The language is Java, so I'd use pkg:abstract/compiler/java@17. I'm using cxx because cpp is C Pre Processor, and to save the + encoding. Other than that, it's just one possible proposal.
What's the suggestion here, to provide a table of languages? Or a general rule to create the name with a couple of exceptions? (e.g. lowercase with underscores for spaces, must be in the TIOBE index).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still to early to think about this, i dont think all real-world requirements were considered/met, yet.
Co-authored-by: Jan Kowalleck <[email protected]>
|
what about language compiler-plugins and extensions? |
|
In the case of PHP, are those really "virtual"? I'm not too familiar with the ecosystem, but they feel like a concrete set of packages needed by the php interpreter, so they should not be expressed using the proposed type in this PR. |
These are actual virtual packages, just asbthe language compilers/interpreters/implementation. |
|
I see, thank for the details. I guess something along the lines of |
|
These are questions that should be discussed in the ticket, not in a proposed solution ;) |
Closes #222.