mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
Add support for PHP Pear (#2775)
* Add support for PHP Pear and unify PECL with it Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove log statements Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix struct comment Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
co-authored by
Alex Goodman
parent
78ef2cf53b
commit
529840bfc0
+7
-1
@@ -37,8 +37,14 @@ type PhpComposerAuthors struct {
|
||||
Homepage string `json:"homepage,omitempty"`
|
||||
}
|
||||
|
||||
type PhpPeclEntry struct {
|
||||
// PhpPeclEntry represents a single package entry found within php pecl metadata files.
|
||||
// Deprecated: please use PhpPearEntry instead with the pear cataloger.
|
||||
type PhpPeclEntry PhpPearEntry
|
||||
|
||||
// PhpPearEntry represents a single package entry found within php pear metadata files.
|
||||
type PhpPearEntry struct {
|
||||
Name string `json:"name"`
|
||||
Channel string `json:"channel,omitempty"`
|
||||
Version string `json:"version"`
|
||||
License []string `json:"license,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user