Don't depend on existing $GOPATH, everything under .vendor
This commit is contained in:
parent
31784281fe
commit
49c248f95f
@ -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
|
||||
|
10
script/test
10
script/test
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user