aboutcode-org / aboutcode-org/scancode-toolkit

scancode does not properly handle multiple explicit paths

Đang mở
#3,720 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Description

> Please leave a brief description of the bug or feature request:

I am trying to use scancode to detect multiple license files within a directory. I expect the tool to list multiple `"type": "file"` entries in the output JSON file with the `path`s relative to the current directory. Instead, I get a bunch of directory entries with no detected license files. It works as expected when I pass a single license file.

### How To Reproduce

> Tell us how to reproduce the issue.

In an unpacked moby/moby git source archive (but really any source tree with multiple licenses works), I ran:

``` shell
scancode --json-pp abcd.json --license ./vendor/github.com/inconshreveable/mousetrap/LICENSE ./vendor/github.com/google/shlex/COPYING
```

### System configuration

> For bug reports, it really helps us to know:

* What OS are you running on? (Windows/MacOS/Linux) Linux

* What version of scancode-toolkit was used to generate the scan file?

``` console
$ scancode --version
ScanCode version: 32.1.0
ScanCode Output Format version: 3.1.0
SPDX License list version: 3.23
```

* What installation method was used to install/run scancode? (pip/source download/other) pipx

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.