microsoft / component-detection

Scans your project to determine what components you use
MIT License
396 stars 81 forks source link

Pip Detection can only find one setup.py #1147

Closed bebound closed 1 week ago

bebound commented 4 weeks ago

We have several setup.py in our repo: https://github.com/Azure/azure-cli The auto-injected Component Detection in ADO can only find the first setup.py: /s/tools/setup.py

However, src/azure-cli/setup.py, src/azure-cli-core/setup.py, src/azure-cli-telemetry/setup.py and src/azure-cli-testsdk/setup.py are missing.

Here is the log: https://dev.azure.com/azclitools/public/_build/results?buildId=162225&view=logs&jobId=15c91363-8619-578d-3fff-3c1a2fde03cd&j=e725b3e9-648f-510f-a0a1-f18bdc151d12&t=ea579b3c-b4c1-59de-db37-e3a24fdd50a7

gc log.txt

bebound commented 3 weeks ago

However, it can detect all setup.py in azure-cli-extension repo: https://dev.azure.com/azclitools/public/_build/results?buildId=164277&view=logs&j=24167955-3a21-598f-f417-ac72576ccfb5&t=7b6ea8ea-a305-55bf-b00f-1b6260132803

azure-cli-extension.txt

In azure-cli, it shows Running self-contained version of Component Detection with version v0.1.0. In azure-cli-extension, it shows Running self-contained version of Component Detection with version v0.1.6.

But this is an auto-injected task, I don't know why the version is different.

bebound commented 1 week ago

I checked the pipeline, it uses Running self-contained version of Component Detection with version v0.1.8. now and the issue is fixed.

https://dev.azure.com/azclitools/public/_build/results?buildId=165962&view=logs&jobId=6f58747d-d468-56ca-0c09-7f5002273949&j=6f58747d-d468-56ca-0c09-7f5002273949&t=9ba5b192-a48c-5d52-2e13-eec860e99341

bebound commented 1 week ago

It seems that it started on June 4 and was finally fixed on June 7. image image