Don't depend on existing $GOPATH, everything under .vendor

This commit is contained in:
rubyist 2014-06-03 11:16:52 -04:00
parent 31784281fe
commit 49c248f95f
2 changed files with 15 additions and 3 deletions

@ -5,5 +5,11 @@ script/fmt
rm -rf `pwd`/bin/*
rm -rf `pwd`/.vendor/pkg
GOPATH="$GOPATH:`pwd`/.vendor" \
mkdir -p `pwd`/.vendor/src/github.com/github
rm -f `pwd`/.vendor/src/github.com/github/git-media
ln -s `pwd` `pwd`/.vendor/src/github.com/github/git-media
GOPATH="`pwd`/.vendor" \
go run script/build.go "$@"
rm -f `pwd`/.vendor/src/github.com/github/git-media

@ -11,5 +11,11 @@ fi
script/fmt
script/bootstrap
GOPATH="$GOPATH:`pwd`/.vendor" go test $target -i
GOPATH="$GOPATH:`pwd`/.vendor" go test $target
mkdir -p `pwd`/.vendor/src/github.com/github
rm -f `pwd`/.vendor/src/github.com/github/git-media
ln -s `pwd` `pwd`/.vendor/src/github.com/github/git-media
GOPATH="`pwd`/.vendor" go test $target -i
GOPATH="`pwd`/.vendor" go test $target
rm -f `pwd`/.vendor/src/github.com/github/git-media