Classic Go dependency tool
Move the specified directory to one GOPATH.
$ tree -L 3
.(Here GOPATH !!!!!!)
βββ README.md
βββ cdep
βββ cdep.conf
βββ cdep.lock
βββ pkg
βΒ Β βββ darwin_amd64
βΒ Β βββ github.com
βΒ Β βββ golang.org
βΒ Β βββ gopkg.in
βββ src
βββ github.com
βΒ Β βββ xxxx
βββ golang.org
βΒ Β βββ yyyy
βββ gopkg.in
βββ zzzz
Vendor function is not used.
It is very simple. Look at the example project.
Example: https://github.com/fkei/stgoart
Currnet install directory.
$ bash <(curl -s https://raw.githubusercontent.com/fkei/cdep/develop/install) `pwd`
Select(/xxxx/yyyy) install directory.
$ bash <(curl -s https://raw.githubusercontent.com/fkei/cdep/develop/install) /xxxx/yyyy
Edit configure file. cdep.conf
Example file: https://github.com/fkei/stgoart/blob/master/cdep.conf
# scm service domain. github.com, gitlab.com, bitbucket.org, golang.org, gopkg.in ...
SERVICE="XXXXXXXXXX"
# scm service organization name.
ORGANIZATION="YYYYYYYYYY"
# scm repository name
REPOSITORY="ZZZZZZZZZZ"
Edit dependency package list file. cdep.lock
Example file: https://github.com/fkei/stgoart/blob/master/cdep.lock
Install and Update
$ ./cdep install
Uninstall
$ ./cdep uninstall
Help
$ ./cdep help