dep
Manage Go dependencies (deprecated tool)
TLDR
Interactively initialize deployer in the local path (use a framework template with --template=template)
Deploy an application to a remote host
Rollback to the previous working release
Connect to a remote host via SSH
List commands
Run any arbitrary command on the remote hosts
Display help for a command
SYNOPSIS
dep command [<flags>] [<args>...]
PARAMETERS
init [<import path constraints>]
Initialize project, scan imports, generate Gopkg.toml
ensure [<-vendor-only>] [<-add pkg[@ver]>...] [<-update pkg[@ver]>...]
Resolve deps, update Gopkg.lock, sync vendor/
status [<-v>]
Report status of dependencies vs imports, show updates
version
Print dep version
check
Verify Gopkg.toml, Gopkg.lock match vendor/
prune
Remove unused dependencies from Gopkg.toml (experimental)
DESCRIPTION
dep is a tool for managing dependencies of Go projects. It declares dependencies in a Gopkg.toml manifest file, resolves them to exact versions in Gopkg.lock, and vendors sources into vendor/ for reproducible builds.
Workflow starts with dep init to analyze imports and generate initial files. dep ensure downloads, updates Gopkg.lock, and vendors dependencies, supporting overrides and constraints. dep status shows outdated packages, while dep check verifies consistency.
dep supports import analysis, version solving with constraints like semver, branches, and commits. It integrates with go build via GOPATH or vendor/.
Deprecated since Go 1.11 modules (go.mod/go.sum), dep is in maintenance mode. Migrate with go mod init and go mod vendor.
CAVEATS
dep is deprecated and unsupported for new projects. Use Go modules: go help modules. May conflict with go mod in same repo.
KEY FILES
Gopkg.toml: deps manifest with constraints
Gopkg.lock: solved versions checksums
vendor/: source copies
MIGRATION
From dep: go mod init, go mod tidy, go mod vendor if needed
HISTORY
Announced 2016 by Go team as official dep mgmt experiment. v0.1 2016, v0.5.0 2018 (stable). Maintenance mode Nov 2019 after Go 1.13 modules.


