Get the latest release of Glide. The script puts it with your Go binaries (
curl https://glide.sh/get | sh
Scan a codebase and create a
glide.yaml file containing the dependencies.
$ glide init
$ edit glide.yaml
Resolve The Dependency Tree
Install the latest dependencies into the
directory matching the version resolution information.
The complete dependency tree is installed, importing Glide,
Godep, GB, and GPM configuration along the way. A
lock file is created from the final output.
$ glide update
Install the dependencies and revisions listed in the lock file into the
directory. If no lock file exists an update is run.
$ glide install
Add More Dependencies
Add a new dependency to the
glide.yaml, install the
dependency, and re-resolve the dependency tree. Optionally, put
a version after an anchor.
$ glide get github.com/foo/bar
$ glide get github.com/foo/bar#^1.2.3