aboutcode-org / aboutcode-org/scancode-toolkit

Scancode --package of composer lock takes a long

Open
#3,313 4 comments 0 reactions 1 assignee Claimed by @AyanSinhaMahapatra View on GitHub
bug
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

With this file (that has ~ 1600 dependencies) https://raw.githubusercontent.com/PrestaShop/PrestaShop/8.0.3/composer.lock , I run this:
```
scancode --package --json-pp compos.json ~/tmp/composer.lock
Setup plugins...
Collect file inventory...
Scan files for: packages with 1 process(es)...
[####################] 2

Scanning done.
Summary: packages with 1 process(es)
Errors count: 0
Scan Speed: 0.01 files/sec.
Initial counts: 1 resource(s): 1 file(s) and 0 directorie(s)
Final counts: 1 resource(s): 1 file(s) and 0 directorie(s)
Timings:
scan_start: 2023-04-11T141512.757914
scan_end: 2023-04-11T141751.900509
setup_scan:licenses: 4.46s
setup: 4.46s
scan:packages: 154.08s
scan: 154.63s
output:json-pp: 66.17s
output: 66.17s
total: 225.31s
Removing temporary files...done.

```
Once the file has been scanned, it takes a long time to complete and there is no progress provided. There is something fishy as the "scan" step proper takes only a few seconds. I surmise it could be some runaway loop in the new license detection code?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.