public/manifest-license/go
Package manifest declares the license
Implements public/manifest-license for go.
| Severity | info |
| Tiers | 1 |
| Stacks | go |
| Scope | each |
| Kind | expr |
| Source | library v0.2.0 |
| Selected by | fleetlint-recommended@v0.2.0 |
Requirement
go.mod has no license field; pkg.go.dev reads the LICENSE file, which public/license checks.
Why
Registries, SBOM tools and license checkers read the manifest, not the LICENSE file.
Capability applies when
repo.publicApplies when
falseCheck
trueFix
Add the SPDX identifier of the LICENSE file to the manifest. GNU licenses are left to you: write -only or -or-later, which the license text does not decide.
Agent instruction: Set the manifest’s license field to the SPDX identifier matching the LICENSE file; ask if the LICENSE text is not a recognised license.
See: https://fleetlint.org/baseline/#public-repositories, https://fleetlint.org/stacks/#go
Generated by fleetlint docs from catalog v0.2.0.