forked from mystiq/dex
build: don't add nested symlinks into working directory on build
This commit is contained in:
parent
fd814dd671
commit
86a2f997d7
1 changed files with 1 additions and 1 deletions
2
build
2
build
|
@ -20,7 +20,7 @@ fi
|
||||||
|
|
||||||
rm -rf $GOPATH/src/github.com/coreos/dex
|
rm -rf $GOPATH/src/github.com/coreos/dex
|
||||||
mkdir -p $GOPATH/src/github.com/coreos/
|
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)"
|
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
|
go build -o bin/dex-worker -ldflags="$LD_FLAGS" github.com/coreos/dex/cmd/dex-worker
|
||||||
|
|
Loading…
Reference in a new issue