Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var GitQuiet = false
var (
VersionMismatch = errors.New("multiple colliding versions specified")
)
Functions ¶
func CleanLegacyName ¶
func Ensure ¶
Ensure receives all direct packages, the directory to vendor into and all known locks. It then makes sure all direct and nested dependencies are present in vendor at the correct version:
If the package is locked and the files in vendor match the sha256 checksum, nothing needs to be done. Otherwise, the package is retrieved from the upstream source and added into vendor. If previously locked, the sums are checked as well. In case a (nested) package is already present in the lock, the one from the lock takes precedence. This allows the user to set the desired version in case by `jb install`ing it.
Finally, all unknown files and directories are removed from vendor/ The full list of locked depedencies is returned