kezhenxu94 commented on issue #11648:
URL: https://github.com/apache/skywalking/issues/11648#issuecomment-3727987788
This turns out to be a misconfiguration, the config:
```yaml
header:
spdx-id: BSD-3-Clause
copyright-owner: Unknown
software-name: unknown
content: |
Copyright (c) Unknown
Distributed under the terms of the Modified BSD License.
paths-ignore:
- '**/.*'
```
is wrong, it is missing the `license` section below `header`:
```yaml
header:
license:
spdx-id: BSD-3-Clause
copyright-owner: Unknown
software-name: unknown
content: |
Copyright (c) Unknown
Distributed under the terms of the Modified BSD License.
paths-ignore:
- '**/.*'
```
after adding it, the logs is clear:
```
~/workspace/skywalking-eyes ❯ go run cmd/license-eye/main.go h c
INFO Loading configuration from file: .licenserc.yaml
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
WARNING failed to find a license template for spdx id BSD-3-Clause, open
header-templates/BSD-3-Clause.txt: file does not exist
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]