Documentation
¶
Index ¶
Constants ¶
const HeaderComment = `# Generated by Dagger. Pins the images and git refs this workspace uses.
# Any Dagger command may update this file; always commit it with your changes.
# Run ` + "`dagger workspace update`" + ` to refresh the pinned versions.`
HeaderComment is written at the top of every non-empty lockfile. It exists to steer readers (humans and coding agents alike) towards committing lockfile changes instead of discarding them: the lockfile is updated as a side effect of running Dagger, so a diff here rarely looks connected to the change that caused it.
Variables ¶
var ErrMergeConflict = errors.New("lockfile contains merge conflict markers")
ErrMergeConflict indicates that a lockfile contains unresolved Git conflict markers and must be resolved by the user rather than recovered automatically.
Functions ¶
This section is empty.
Types ¶
type Lockfile ¶
type Lockfile struct {
// contains filtered or unexported fields
}
Lockfile stores lock entries keyed by (namespace, operation, inputs).
func Parse ¶
Parse decodes lockfile JSON lines.
Lines starting with "#" are comments and are ignored. Non-empty files must otherwise start with a supported version header line.
type UnsupportedVersionError ¶
UnsupportedVersionError reports a syntactically valid lockfile version that this package cannot parse.
func (*UnsupportedVersionError) Error ¶
func (err *UnsupportedVersionError) Error() string
func (*UnsupportedVersionError) IsNewer ¶
func (err *UnsupportedVersionError) IsNewer() bool
IsNewer reports whether the unsupported version is newer than the supported version. Non-integer versions are not considered newer.