Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConsTypeConstraint represents a constraint ConsTypeConstraint = "constraint" // ConsTypeHint represents a constraint type hint ConsTypeHint = "hint" // DepTypeDirect represents a direct dependency DepTypeDirect = "direct dep" // DepTypeTransitive represents a transitive dependency, // or a dependency of a dependency DepTypeTransitive = "transitive dep" // DepTypeImported represents a dependency imported by an external tool DepTypeImported = "imported dep" )
Variables ¶
This section is empty.
Functions ¶
func GetLockingFeedback ¶
GetLockingFeedback returns a dependency "locking" feedback message. For example:
Locking in v1.1.4 (bc29b4f) for direct dep github.com/foo/bar Locking in master (436f39d) for transitive dep github.com/baz/qux
func GetUsingFeedback ¶
GetUsingFeedback returns a dependency "using" feedback message. For example:
Using ^1.0.0 as constraint for direct dep github.com/foo/bar Using 1b8edb3 as hint for direct dep github.com/bar/baz
Types ¶
type ConstraintFeedback ¶
type ConstraintFeedback struct {
Constraint, LockedVersion, Revision, ConstraintType, DependencyType, ProjectPath string
}
ConstraintFeedback holds project constraint feedback data
func NewConstraintFeedback ¶ added in v0.2.0
func NewConstraintFeedback(pc gps.ProjectConstraint, depType string) *ConstraintFeedback
NewConstraintFeedback builds a feedback entry for a constraint in the manifest.
func NewLockedProjectFeedback ¶ added in v0.2.0
func NewLockedProjectFeedback(lp gps.LockedProject, depType string) *ConstraintFeedback
NewLockedProjectFeedback builds a feedback entry for a project in the lock.
func (ConstraintFeedback) LogFeedback ¶
func (cf ConstraintFeedback) LogFeedback(logger *log.Logger)
LogFeedback logs feedback on changes made to the manifest or lock.
Click to show internal directories.
Click to hide internal directories.