aboutcode-org / aboutcode-org/scancode-toolkit

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

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

描述

### 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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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