Skip to content
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

Expand matching of requirements.txt file to include any prefixes or suffixes #168

Merged
merged 3 commits into from
Sep 8, 2020

Conversation

dakaneye
Copy link
Contributor

@dakaneye dakaneye commented Sep 3, 2020

Fixes #167
Signed-off-by: Samuel Dacanay sam.dacanay@anchore.com

…uffixes

Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
…iple requirements files)

Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
@@ -20,7 +20,7 @@ func New() *Cataloger {
globParsers := map[string]common.ParserFn{
"**/*egg-info/PKG-INFO": parseEggMetadata,
"**/*dist-info/METADATA": parseWheelMetadata,
"**/requirements.txt": parseRequirementsTxt,
"**/*requirements*.txt": parseRequirementsTxt,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is exactly right!

Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
@dakaneye dakaneye merged commit 11334b6 into main Sep 8, 2020
@dakaneye dakaneye deleted the expand-requirements-file-matching branch September 8, 2020 17:23
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
…uffixes (anchore#168)

* Expand matching of requirements.txt file to include any prefixes or suffixes

Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>

* Add some test cases to integration test (ensure syft can pick up multiple requirements files)

Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>

* Run lint-fix

Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand matching of requirements.txt
3 participants