check

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBehind = errors.NewSentinel(
	"skillup.version_behind",
	"a segment's version is behind what its commits warrant",
)
View Source
var ErrInconsistent = errors.NewSentinel(
	"skillup.catalogue_inconsistent",
	"marketplace.json disagrees with the segments on disk",
)

ErrBehind reports at least one segment whose manifest is behind its commits.

NewSentinel, not New: a package-level var captures its stack at package initialisation, which points at nothing useful. A sentinel carries a stable kind instead, so its identity survives a wire. ErrInconsistent reports the catalogue and the segments on disk disagreeing.

Functions

func NewCmdCheck

func NewCmdCheck(props *props.Props) *setup.Command

func RunCheck

func RunCheck(ctx context.Context, p *props.Props, opts *CheckOptions, _ []string) error

RunCheck is the CI gate: non-zero when a manifest has not been bumped.

Types

type CheckOptions

type CheckOptions struct {
	Path string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL