A plugin for glide that pins all dependencies from the lock file into the yaml file
Перейти к файлу
Steven Hartland 98eb6d533f Merge pull request #1 from darkliquid/master
Implement initial pinning functionality
2017-02-02 14:37:21 +00:00
vendor Implement initial pinning functionality 2017-02-02 11:08:55 +00:00
.gitignore Implement initial pinning functionality 2017-02-02 11:08:55 +00:00
.travis.yml Implement initial pinning functionality 2017-02-02 11:08:55 +00:00
LICENSE Implement initial pinning functionality 2017-02-02 11:08:55 +00:00
README.md Implement initial pinning functionality 2017-02-02 11:08:55 +00:00
glide.lock Implement initial pinning functionality 2017-02-02 11:08:55 +00:00
glide.yaml Implement initial pinning functionality 2017-02-02 11:08:55 +00:00
main.go Implement initial pinning functionality 2017-02-02 11:08:55 +00:00

README.md

Glide Pin

Build Status Go Report Card

A plugin for glide that converts the lock file into the yaml file. Why might you want this? Well, if you want a nice easy way to pin all the versions of all the dependencies and sub-dependencies you have, this will take that info that already exists in your glide.lock file and make it an explicit requirement in your yaml file.

By default, the original yaml file has the dependencies in it replaced with the values in the lock file, but the version strings kept from the original YAML. You can pass the --exact flag to force the YAML file to have all version strings replaced with the exact commit hash/version.

Loosely based on the code from glide-cleanup - thanks!

Install

go get github.com/multiplay/glide-pin

Run

glide pin