package version

Import Path
	go.pact.im/x/goship/internal/version (on go.dev)

Dependency Relation
	imports 8 packages, and imported by 3 packages

Involved Source Files Package version resolves and validates Go module semantic versions and VCS tags.
Package-Level Type Names (total 2, both are exported)
/* sort exporteds by: | */
BumpKind identifies a relative semantic version increment. func go.pact.im/x/goship/internal/apidiff.ModuleDiff.SuggestedBump(latestVer string) BumpKind func Bump(latest string, kind BumpKind, pre string) (string, error) const BumpAuto const BumpMajor const BumpMinor const BumpNone const BumpPatch
Spec describes how target versions are computed for modules. Bump is a relative semver bump ("patch", "minor", "major") when Explicit is empty. Explicit is a concrete canonical semver (e.g. "v0.2.0") when Bump is BumpNone. Prerelease is an optional prerelease suffix (without leading "-", e.g. "rc.1"). func ParseSpec(raw, pre string) (Spec, error) func Resolve(modPath, modDir, latest string, spec Spec, overrides map[string]string) (string, error)
Package-Level Functions (total 8, all are exported)
Bump increments a semantic version by kind. If latest is empty, it starts from v0.0.0.
LatestTag finds the highest valid semantic version among tags for modDir. It returns empty strings if no matching semver tag exists.
ParseOverrides splits trailing arguments into per-module version overrides ("target=vX.Y.Z") and plain module targets.
ParseSpec parses either an explicit semver ("v1.2.3") or a relative bump keyword ("patch", "minor", "major").
ParseTag extracts the semver from tag if it belongs to the module at modDir.
Resolve computes and validates the target version for a module.
TagFor returns the canonical VCS tag for a module at repo-relative slash dir and semantic version ver.
ValidateModuleVersion checks that ver is valid for modPath according to Go’s module path and major-version suffix rules.
Package-Level Constants (total 5, all are exported)
BumpAuto selects patch, minor, or major automatically from apidiff.
BumpMajor increments the major component (vX.Y.Z -> v(X+1).0.0).
BumpMinor increments the minor component (vX.Y.Z -> vX.(Y+1).0).
BumpNone indicates an explicit version rather than a relative bump.
BumpPatch increments the patch component (vX.Y.Z -> vX.Y.(Z+1)).