dep README

The project's README from github.com/golang/dep. As one markdown file: README.md.

Build Status Windows Build Status

Dep

dep is a dependency management tool for Go. It requires Go 1.9 or newer to compile.

NOTE: Dep was an official experiment to implement a package manager for Go. As of 2020, Dep is deprecated and archived in favor of Go modules, which have had official support since Go 1.11. For more details, see https://golang.org/ref/mod.

For guides and reference materials about dep, see the documentation.

Installation

You should use an officially released version. Release binaries are available on the releases page.

On MacOS you can install or upgrade to the latest released version with Homebrew:

$ brew install dep
$ brew upgrade dep

On Debian platforms you can install or upgrade to the latest version with apt-get:

$ sudo apt-get install go-dep

On Windows, you can download a tarball from go.equinox.io.

On other platforms you can use the install.sh script:

$ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

It will install into your $GOPATH/bin directory by default or any other directory you specify using the INSTALL_DIRECTORY environment variable.

If your platform is not supported, you'll need to build it manually or let the team know and we'll consider adding your platform to the release builds.

If you're interested in getting the source code, or hacking on dep, you can install via go get:

go get -u github.com/golang/dep/cmd/dep

dep (golang/dep)

Searching Database…

12.7K ·GitHub
archived
What is this?Dep was an official experimental dependency management tool for Go, used to fetch and lock third-party package versions for Go projects.
Is it a library or a CLI tool?It is a command-line tool you run in your Go project to manage dependencies, not a library you import into code.
Do I need a specific Go version to build it?Yes, building from source requires Go 1.9 or newer.
Should I actually use this for a new project?No — the project is deprecated and archived in favor of Go modules, which have been officially supported since Go 1.11, so it is not recommended for new work.
Which platforms are supported?Release binaries are provided for macOS, Debian/Linux, and Windows; other platforms require manual building or requesting support.
Why is dep deprecated?Dep was an experiment to build an official Go package manager before Go had one built in. Once Go modules shipped with official support starting in Go 1.11, dep became redundant and the project was archived.
What should I use instead of dep today?Go modules, Go's built-in dependency management system supported since Go 1.11, is the recommended replacement for dep.
Creator
golang
Size
12.2 MB
Stars
12.7K
Age
10y
Commits · 90 Days