package version
import "github.com/input-output-hk/catalyst-forge/lib/blueprint/pkg/version"
Index ¶
- Variables
- func GetVersion(v cue.Value) (*semver.Version, error)
- func ValidateVersions(blueprintVersion *semver.Version, schemaVersion *semver.Version) error
Variables ¶
var ( ErrMajorMismatch = errors.New("major version mismatch") ErrMinorMismatch = errors.New("minor version mismatch") )
Functions ¶
func GetVersion ¶
getVersion extracts the version from the given CUE value. If the version is not found or invalid, an error is returned.
func ValidateVersions ¶
func ValidateVersions(blueprintVersion *semver.Version, schemaVersion *semver.Version) error
validateVersion validates the version of the given blueprint against the schema. If the blueprint major version is greater than the schema major version, an error is returned. If the blueprint minor version is greater than the schema minor version, an error is returned.
Source Files ¶
- Version
- v0.0.0-20240928203643-c3373f0052b9 (latest)
- Published
- Sep 28, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 days ago –
Tools for package owners.