Documentation
¶
Overview ¶
Package lockfile turns a resolution into gpt.lock, a deterministic JSON lockfile, and renders the dependency tree. The lockfile is a pure function of the resolution: package and dependency lists are sorted, so the same resolution always produces byte-identical output on any machine or operating system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lock ¶
type Lock struct {
Version int `json:"version"`
Roots []string `json:"roots"`
Packages []Package `json:"packages"`
}
Lock is the content of a gpt.lock file.
type Package ¶
type Package struct {
Name string `json:"name"`
Version string `json:"version"`
// Extras are the optional features of this package the resolution selected,
// sorted. Absent when none were, so a lock without extras is unchanged.
Extras []string `json:"extras,omitempty"`
// Hashes are the digests of the artifacts published for this version, in
// pip's hash syntax, sorted. Absent when the index published none.
Hashes []string `json:"hashes,omitempty"`
Dependencies []string `json:"dependencies,omitempty"`
}
Package is one locked package with the resolved packages it depends on.