mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
cataloger: add a glob path for parsing requirements.txt
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
@@ -15,6 +15,7 @@ func NewCataloger() *Cataloger {
|
|||||||
globParsers := map[string]common.ParserFn{
|
globParsers := map[string]common.ParserFn{
|
||||||
"**/egg-info/PKG-INFO": parseEggMetadata,
|
"**/egg-info/PKG-INFO": parseEggMetadata,
|
||||||
"**/dist-info/METADATA": parseWheelMetadata,
|
"**/dist-info/METADATA": parseWheelMetadata,
|
||||||
|
"**/requirements.txt": parseRequirementsTxt,
|
||||||
}
|
}
|
||||||
|
|
||||||
return &Cataloger{
|
return &Cataloger{
|
||||||
|
|||||||
Reference in New Issue
Block a user