-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add PHP PEAR/PECL type #300
Open
LaurentGoderre
wants to merge
2
commits into
package-url:master
Choose a base branch
from
LaurentGoderre:pecl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -471,6 +471,19 @@ including container images built by Docker and others: | |
pkg:oci/static@sha256%3A244fd47e07d10?repository_url=gcr.io/distroless/static&tag=latest | ||
pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1 | ||
|
||
pear | ||
---- | ||
``pear`` for PEAR and PECL PHP packages: | ||
|
||
- The default repository for PEAR is ``https://pear.php.net``. The default repository for PECL is ``https://pecl.php.net/``. | ||
- The ``namespace`` is the channel of the package. The domain portion of the channel MUST be lowercased. | ||
- The ``name`` is not case sensitive | ||
- The ``version`` is the version of the package | ||
- Examples: | ||
LaurentGoderre marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
pkg:pear/pear.php.net/[email protected] | ||
pkg:pear/pecl.php.net/[email protected] | ||
|
||
pub | ||
---- | ||
``pub`` for Dart and Flutter packages: | ||
|
@@ -588,8 +601,6 @@ Other candidate types to define: | |
- ``openwrt`` for OpenWRT packages: | ||
- ``osgi`` for OSGi bundle packages: | ||
- ``p2`` for Eclipse p2 packages: | ||
- ``pear`` for Pear PHP packages: | ||
- ``pecl`` for PECL PHP packages: | ||
- ``perl6`` for Perl 6 module packages: | ||
- ``platformio`` for PlatformIO packages: | ||
- ``ebuild`` for Gentoo Linux portage packages: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -550,5 +550,41 @@ | |
"qualifiers": null, | ||
"subpath": null, | ||
"is_invalid": false | ||
}, | ||
{ | ||
"description": "valid php pecl purl", | ||
"purl": "pkg:pear/pecl.php.net/[email protected]", | ||
"canonical_purl": "pkg:pear/pecl.php.net/[email protected]", | ||
"type": "pear", | ||
"namespace": "pecl.php.net", | ||
"name": "APCu", | ||
"version": "5.1.23", | ||
"qualifiers": null, | ||
"subpath": null, | ||
"is_invalid": false | ||
}, | ||
{ | ||
"description": "valid php pecl purl without version", | ||
"purl": "pkg:pear/pecl.php.net/APCu", | ||
"canonical_purl": "pkg:pear/pecl.php.net/APCu", | ||
"type": "pear", | ||
"namespace": "pecl.php.net", | ||
"name": "APCu", | ||
"version": null, | ||
"qualifiers": null, | ||
"subpath": null, | ||
"is_invalid": false | ||
}, | ||
{ | ||
"description": "valid php pear purl", | ||
"purl": "pkg:pear/pear.php.net/[email protected]", | ||
"canonical_purl": "pkg:pear/pear.php.net/[email protected]", | ||
"type": "pear", | ||
"namespace": "pear.php.net", | ||
"name": "Text_Password", | ||
"version": "1.2.1", | ||
"qualifiers": null, | ||
"subpath": null, | ||
"is_invalid": false | ||
} | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What is the standard case? is this normalized to lower case? Is there a spec/doc for this?
For instance, https://pecl.php.net/package/ApacheAccessor points to a proper page, and so is https://pecl.php.net/package/apacheaccessor but this is not true for https://pecl.php.net/rest/p/apacheaccessor/info.xml which is OK, but https://pecl.php.net/rest/p/ApacheAccessor/info.xml is not. So it seems that the name IS case insensitive BUT normalized to lowercase or something else.... if you could research this, it would be great.
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.
@pombredanne wouldn't the behavior of the CLI take prescende over how their site is configured? In the CLI, the case doesn't matter. From the site though it doesn't seem like it's normalized to lowercase