aboutcode-org / aboutcode-org/scancode-toolkit

Scancode --package of composer lock takes a long

Aperta
#3,313 4 commenti 0 reazioni 1 assegnatario Rivendicata da @AyanSinhaMahapatra Vedi su GitHub
bug
Lingua principale
Python
Stelle
2.6k
Fork
791
Merge medio
1g 12h
PR unite (30g)
5

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.