aboutcode-org / scancode-toolkit

:mag: ScanCode detects licenses, copyrights, dependencies by "scanning code" ... to discover and inventory open source and third-party packages used in your code. Sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase, the Google Summer of Code, Azure credits, nexB and others generous sponsors!
https://aboutcode.org/scancode/
2.13k stars 551 forks source link

scancode hang when using a pipe with --json-pp #3591

Open armijnhemel opened 12 months ago

armijnhemel commented 12 months ago

Description

Related to #3588, #3589 and #3590

When supplying a pipe to --json-pp scancode can hang and has to be interrupted.

How To Reproduce

$ mknod /tmp/bla/pipe p
$ time ./scancode -l scancode --json-pp /tmp/bla/pipe
Setup plugins...
Collect file inventory...
Scan files for: licenses with 1 process(es)...
[####################] 2                  
^CRemoving temporary files...done.

Aborted!
^C

real    0m25.566s
user    0m4.274s
sys 0m0.953s

System configuration

For bug reports, it really helps us to know:

pombredanne commented 11 months ago

Closed in favor of #3596