Commit 429fc080 authored by Eric Chiang's avatar Eric Chiang

Merge pull request #440 from ericchiang/fix_build_script

*: fix build script to work outside of GOPATH
parents 594c5455 16c189b7
...@@ -21,6 +21,17 @@ for V in "${KNOWN_INSECURE[@]}"; do ...@@ -21,6 +21,17 @@ for V in "${KNOWN_INSECURE[@]}"; do
fi fi
done done
PROJ="dex"
ORG_PATH="github.com/coreos"
REPO_PATH="${ORG_PATH}/${PROJ}"
if [ ! -h gopath/src/${REPO_PATH} ]; then
mkdir -p gopath/src/${ORG_PATH}
ln -s ${PWD} gopath/src/${REPO_PATH} || exit 255
fi
export GOPATH=${PWD}/gopath
export GOBIN=${PWD}/bin
export GO15VENDOREXPERIMENT=1 export GO15VENDOREXPERIMENT=1
export VERSION=$(./git-version) export VERSION=$(./git-version)
LD_FLAGS="-X main.version=${VERSION}" LD_FLAGS="-X main.version=${VERSION}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment