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
Что это такое?Dep был официальным экспериментальным инструментом для управления зависимостями в Go, который загружал и фиксировал версии сторонних пакетов для Go-проектов.
Это библиотека или утилита командной строки?Это утилита командной строки, которую вы запускаете в своём Go-проекте для управления зависимостями, а не библиотека, которую импортируют в код.
Нужна ли конкретная версия Go для сборки?Да, для сборки из исходников требуется Go 1.9 или новее.
Стоит ли использовать это для нового проекта?Нет: проект устарел и архивирован в пользу Go modules, которые официально поддерживаются начиная с Go 1.11, поэтому для новой работы его не рекомендуют.
Какие платформы поддерживаются?Готовые бинарные файлы выпускаются для macOS, Debian/Linux и Windows; для других платформ нужна ручная сборка или запрос на поддержку.
Почему dep устарел?Dep был экспериментом по созданию официального менеджера пакетов для Go в те времена, когда в самом Go такого встроенного инструмента ещё не было. Когда начиная с Go 1.11 появились официально поддерживаемые Go modules, dep стал ненужным, и проект был архивирован.
Что использовать вместо dep сегодня?Go modules, встроенная в Go система управления зависимостями, поддерживаемая с Go 1.11, является рекомендуемой заменой dep.
Creator
golang
Size
12.2 MB
Stars
12.7K
Age
10y
Commits · 90 Days