A plugin for glide that pins all dependencies from the lock file into the yaml file
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor
.gitignore
.travis.yml
LICENSE
README.md
glide.lock
glide.yaml
main.go

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