aboutcode-org / aboutcode-org/scancode-toolkit

Scancode --package of composer lock takes a long

未關閉
#3,313 4 則留言 0 個 reaction 已指派 1 人 已被 @AyanSinhaMahapatra 認領 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

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?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。