Skip to content

Latest commit

Β 

History

History
86 lines (61 loc) Β· 1.58 KB

File metadata and controls

86 lines (61 loc) Β· 1.58 KB

cdep

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

install

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

Setup

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

Use

Install and Update

$ ./cdep install

Uninstall

$ ./cdep uninstall

Help

$ ./cdep help