Glide: Vendor Package Management for Go
Glide provides the following functionality:
- Records dependency information in a
glide.yamlfile. This includes a name, version or version range, version control information for private repos or when the type cannot be detected, and more.
- Tracks the specific revision each package is locked to in a
glide.lockfile. This enables reproducibly fetching the dependency tree.
- Works with Semantic Versions and Semantic Version ranges.
- Supports Git, Bzr, HG, and SVN. These are the same version control systems supported by
vendor/directories, known as the Vendor Experiment, so that different projects can have differing versions of the same dependencies.
- Allows for aliasing packages which is useful for working with forks.
- Import configuration from Godep, GPM, Gom, and GB.
There are a few ways to install Glide.
- Use the shell script to try an automatically install it.
curl https://glide.sh/get | sh
- Download a versioned release. Glide releases are semantically versioned.
- Use a system package manager to install Glide. For example, using
brew install glidecan be used if you're using Homebrew on Mac.
- The latest development snapshot can be installed with
go get. For example,
go get -u github.com/Masterminds/glide. This is not a release version.