Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStale ¶
IsStale checks if the lock file is stale relative to the gale.toml packages. Returns true if packages differ.
func VersionMatches ¶ added in v0.16.3
VersionMatches reports whether the locked version (potentially canonical form like "1.8.1-1") matches the toml version (bare form like "1.8.1"). They match if the strings are equal, or if the locked version is "<toml>-<N>" for any all-digit suffix N > 0 (canonical revision form). Revision 0 is not a valid canonical revision and is not treated as a match.
Types ¶
type LockFile ¶
type LockFile struct {
Packages map[string]LockedPackage `toml:"packages"`
}
LockFile represents a gale.lock file.
type LockedPackage ¶ added in v0.4.0
type LockedPackage struct {
Version string `toml:"version"`
SHA256 string `toml:"sha256,omitempty"`
ManifestDigest string `toml:"manifest_digest,omitempty"`
}
LockedPackage represents a pinned package in the lockfile.
Click to show internal directories.
Click to hide internal directories.