-
Notifications
You must be signed in to change notification settings - Fork 93
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
component detection support regex to match files. #74
Comments
@wangzelin007 Can I ask the technical reason why you need separate files for this? I did a quick diff, and the differences are minor:
It doesn't appear that Imports of I assume the difference in |
First of all, we use
It indeed should be included in
I think this should be an error.
install_requires=[
# Due to CVE-2021-32559 updating the pywin32 requirement
'pywin32>=226; platform_system == "Windows"',
],
This is true because we use |
Hi component detection team,
Our public repo: azure-cli is using component detection in Azure DevOps pipelines.
in our repo, we have multiple reuqirment.$PYVERSION.$PLATFORM.txt file.
For example:
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/requirements.py3.Darwin.txt
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/requirements.py3.Linux.txt
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/requirements.py3.windows.txt
But component detection task only match requirements.txt file
component-detection.log
Can you support

regex
while checking files.Currently:
https://github.com/microsoft/component-detection/blob/main/src/Microsoft.ComponentDetection.Detectors/pip/PipComponentDetector.cs#L18
Suggetsion:
public override IList SearchPatterns => new List { "setup*.py", "requirements*.txt" };
Thanks.
The text was updated successfully, but these errors were encountered: