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

Enable deep mode for poetry #626

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/repotests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ jobs:
with:
repository: 'fsprojects/FAKE'
path: 'repotests/dotnet-paket'
- uses: actions/checkout@v4
with:
repository: 'appthreat/blint'
path: 'repotests/blint'
- uses: dtolnay/rust-toolchain@stable
- name: repotests
run: |
Expand Down Expand Up @@ -178,6 +182,8 @@ jobs:
bin/cdxgen.js -r -t rust repotests/rs-validator -o bomresults/bom-rs-validator.json --validate
bin/cdxgen.js -r -t rust repotests/rs-axum -o bomresults/bom-rs-axum.json --validate
bin/cdxgen.js -p -r -t dotnet repotests/dotnet-paket -o bomresults/bom-dotnet-paket.json --validate
bin/cdxgen.js -p -t python repotests/blint -o bomresults/bom-blint.json
bin/cdxgen.js -p -t python repotests/blint -o bomresults/bom-blint-deep.json --deep
# mkdir -p jenkins
# wget https://updates.jenkins.io/download/plugins/sonar/2.14/sonar.hpi
# wget https://updates.jenkins.io/download/plugins/bouncycastle-api/2.26/bouncycastle-api.hpi
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2321,8 +2321,10 @@ export const createPythonBom = async (path, options) => {
retMap.dependenciesList,
parentComponent
);
} else {
// Fallback to retrieving the tree using virtualenv
}
// Retrieve the tree using virtualenv in deep mode and as a fallback
// This is a slow operation
if (options.deep || !dependencies.length) {
retMap = getPipFrozenTree(basePath, f, tempDir);
if (retMap.pkgList && retMap.pkgList.length) {
pkgList = pkgList.concat(retMap.pkgList);
Expand Down
Loading