aboutcode-org / aboutcode-org/scancode-toolkit

Scancode --package of composer lock takes a long

Aberta
#3,313 4 comentários 0 reações 1 responsável Reivindicada por @AyanSinhaMahapatra Ver no GitHub
bug
Linguagem predominante
Python
Estrelas
2.6k
Forks
791
Merge médio
1d 12h
PRs com merge (30d)
5

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.