A small command line utility for fully vendoring module dependencies
Because Google have a different idea of what vendoring means than the rest
of us. If you use the built-in
go mod vendor command, it will only cherry pick certain files for inclusion
in the vendor folder. This can cause problems when using
Cgo because it ignores C files that are
not in the package
Tests and examples for dependencies are ignored too.
This tool copies the entire dependency tree into the vendor folder like every
other package manager does and how every sane developer would expect it to
work. It can be used safely in the
$GOPATH or elsewhere.
This tool fully copies all files from your project's imported dependencies
vendor folder. This allows you to:
$ go get github.com/nomad-software/vend
$ cd $GOPATH/mypackage $ vend
Run the following command for help.
$ vend -help