Golang deps proj manager, like rebar in Erlang. Clone all deps project in vendor directory when you run gopack get-deps.
Fork from https://github.com/d2fn/gopack, and make some changes.
- go get github.com/songcf/gopack && go build -o gopack
- copy gopack to your project
- touch
gopack.configfile in your project, and config deps proj (you can config git/svn/hg, tag/branch/commit):
[deps.logrus]
import = "github.com/Sirupsen/logrus"
source = "https://github.com/Sirupsen/logrus"
scm = "git"
tag = "v0.11.5"
[deps.proto]
import = "github.com/golang/protobuf"
source = "https://github.com/golang/protobuf"
scm = "git"
branch = "master"
[deps.mysql]
import = "github.com/go-sql-driver/mysql"
source = "https://github.com/go-sql-driver/mysql"
scm = "git"
tag = "v1.3"
- run
./gopack get-deps, will create vendor dir, and git clone these deps proj
Gopack includes a few tools to help you track your project dependencies.
./gopack treeshows the complete list of external dependencies in your project../gopack statsshows statistics about dependency imports../gopack get-depsclone the project dependencies in vendor direcotry.