fleetlint Policy for a fleet of repositories
v0.8
Getting started

public/manifest-license/go

Package manifest declares the license

Implements public/manifest-license for go.

Severityinfo
Tiers1
Stacksgo
Scopeeach
Kindexpr
Sourcelibrary v0.5.0
Selected byfleetlint-recommended@v0.5.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.public

Applies when

false

Check

true

Fix

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.

Sources


Generated by fleetlint docs from catalog v0.5.0.