зеркало из https://github.com/golang/dep.git
Touch up Solver docs
This commit is contained in:
Родитель
d8c6825c14
Коммит
7662870dc5
14
solver.go
14
solver.go
|
@ -162,9 +162,19 @@ type solver struct {
|
|||
}
|
||||
|
||||
// A Solver is the main workhorse of gps: given a set of project inputs, it
|
||||
// performs a constraint solving analysis to develop a complete Result that can
|
||||
// be used as a lock file, and to populate a vendor directory.
|
||||
// performs a constraint solving analysis to develop a complete Solution, or
|
||||
// else fail with an informative error.
|
||||
//
|
||||
// If a Solution is found, an implementing tool may persist it - typically into
|
||||
// what a "lock file" - and/or use it to write out a directory tree of
|
||||
// dependencies, suitable to be a vendor directory, via CreateVendorTree.
|
||||
type Solver interface {
|
||||
// HashInputs produces a hash digest representing the unique inputs to this
|
||||
// solver. It is guaranteed that, if the hash digest is equal to the digest
|
||||
// from a previous Solution.InputHash(), that that Solution is valid for
|
||||
// this Solver's inputs.
|
||||
//
|
||||
// In such a case, it may not be necessary to run Solve() at all.
|
||||
HashInputs() ([]byte, error)
|
||||
Solve() (Solution, error)
|
||||
}
|
||||
|
|
2
types.go
2
types.go
|
@ -144,8 +144,6 @@ type Package struct {
|
|||
}
|
||||
|
||||
// bimodalIdentifiers are used to track work to be done in the unselected queue.
|
||||
// TODO(sdboyer) marker for root, to know to ignore prefv...or can we do unselected queue
|
||||
// sorting only?
|
||||
type bimodalIdentifier struct {
|
||||
id ProjectIdentifier
|
||||
// List of packages required within/under the ProjectIdentifier
|
||||
|
|
Загрузка…
Ссылка в новой задаче