07236da1e7
go-sqlite3 takes a long time to compile, so it's very important to cache a build rather than re-compile every time. Use go install instead of go build in the build script to cache all packages. Print a warning in the test script if cached packages are not found.
10 lines
347 B
Text
10 lines
347 B
Text
export GOPATH=${PWD}/Godeps/_workspace
|
|
export GOBIN=${PWD}/bin
|
|
|
|
rm -rf $GOPATH/src/github.com/coreos/dex
|
|
mkdir -p $GOPATH/src/github.com/coreos/
|
|
|
|
# Only attempt to link dex into godeps if it isn't already there
|
|
[ -d $GOPATH/src/github.com/coreos/dex ] || ln -s ${PWD} $GOPATH/src/github.com/coreos/dex
|
|
|
|
LD_FLAGS="-X main.version=$(./git-version)"
|