mediocregopher / goat

A simple, yaml-based go dependency manager
Apache License 2.0
68 stars 11 forks source link

Bootstrap Build #13

Closed trans closed 10 years ago

trans commented 10 years ago

I think we need some bootstrap code for building goat itself. Before I could run make I had to do:

mkdir -p .goat/deps/src/github.com/mediocregopher
cd .goat/deps/src/github.com/mediocregopher
ln -s ../../../../.. goat
cd ../../../../..
export GOPATH=$PWD/.goat/deps
go get launchpad.net/goyaml

I think we could add .goat/deps/src/github.com/mediocregopher/goat to the repo, which would cover the first four lines. Then we would only need to worry about the last two. Maybe they can be in the Makefile, make config or something?

mediocregopher commented 10 years ago

Send in a pull-request for it if you want. When it's become a problem for me I just fall-back to the default go way of keeping the full src/github.com/mediocregopher/goat directory somewhere and setting my GOPATH to that. But if git supports symlinks then that would work too.