build: don't add nested symlinks into working directory on build

This commit is contained in:
Joe Bowers 2015-10-16 14:46:37 -07:00
parent fd814dd671
commit 86a2f997d7

2
build
View file

@ -20,7 +20,7 @@ fi
rm -rf $GOPATH/src/github.com/coreos/dex
mkdir -p $GOPATH/src/github.com/coreos/
ln -s ${PWD} $GOPATH/src/github.com/coreos/dex
[ -d $GOPATH/src/github.com/coreos/dex ] || ln -s ${PWD} $GOPATH/src/github.com/coreos/dex
LD_FLAGS="-X main.version=$(git rev-parse HEAD)"
go build -o bin/dex-worker -ldflags="$LD_FLAGS" github.com/coreos/dex/cmd/dex-worker