aboutcode-org / aboutcode-org/scancode-toolkit

Reported rule URLs refer to `develop` branch instead of corresponding tagged release

Đang mở
#3,808 1 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

In the generated YAML report, the rule URL refers to the `develop` branch instead of the tagged release if used from a release.

### How To Reproduce

Running `scancode -l --license-text setup.py --info --url --copyright --yaml setup.yaml` on a file generates a YAML report which includes

```yaml
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_1251.RULE
```

This is misleading as the rule might have changed when the report has been generated with an older ScanCode Toolkit version or even deleted, thus making the reference more or less obsolete/fragile.

### System configuration

* What OS are you running on? Linux
* What version of scancode-toolkit was used to generate the scan file? 32.1.0
* What installation method was used to install/run scancode? pip

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.