mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 22:46:36 +01:00
fix py globs to include partial matches (#101)
This commit is contained in:
@@ -12,10 +12,13 @@ type Cataloger struct {
|
||||
}
|
||||
|
||||
func NewCataloger() *Cataloger {
|
||||
// we want to match on partial dir names
|
||||
// /home/user/requests-2.10.0.dist-info/METADATA
|
||||
// /home/user/requests-2.10.0/dist-info/METADATA
|
||||
globParsers := map[string]common.ParserFn{
|
||||
"**/egg-info/PKG-INFO": parseEggMetadata,
|
||||
"**/dist-info/METADATA": parseWheelMetadata,
|
||||
"**/requirements.txt": parseRequirementsTxt,
|
||||
"**/*egg-info/PKG-INFO": parseEggMetadata,
|
||||
"**/*dist-info/METADATA": parseWheelMetadata,
|
||||
"**/requirements.txt": parseRequirementsTxt,
|
||||
}
|
||||
|
||||
return &Cataloger{
|
||||
|
||||
Reference in New Issue
Block a user