mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Merge pull request #404 from BRMatt/patch-1
Ensure build.sh uses dependencies vendored by godeps
This commit is contained in:
@@ -19,9 +19,14 @@ GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)
|
||||
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
||||
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd}
|
||||
|
||||
# Install dependencies
|
||||
echo "==> Getting dependencies..."
|
||||
go get ./...
|
||||
# Store the original GOPATH so we can move the binary to it later
|
||||
ORIGINAL_GOPATH=${GOPATH:-$(go env GOPATH)}
|
||||
GOPATH="$(godep path):$ORIGINAL_GOPATH"
|
||||
case $(uname) in
|
||||
CYGWIN*)
|
||||
ORIGINAL_GOPATH="$(cygpath $ORIGINAL_GOPATH)"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Delete the old dir
|
||||
echo "==> Removing old directory..."
|
||||
@@ -47,14 +52,8 @@ gox \
|
||||
.
|
||||
|
||||
# Move all the compiled things to the $GOPATH/bin
|
||||
GOPATH=${GOPATH:-$(go env GOPATH)}
|
||||
case $(uname) in
|
||||
CYGWIN*)
|
||||
GOPATH="$(cygpath $GOPATH)"
|
||||
;;
|
||||
esac
|
||||
OLDIFS=$IFS
|
||||
IFS=: MAIN_GOPATH=($GOPATH)
|
||||
IFS=: MAIN_GOPATH=($ORIGINAL_GOPATH)
|
||||
IFS=$OLDIFS
|
||||
|
||||
# Copy our OS/Arch to the bin/ directory
|
||||
|
||||
Reference in New Issue
Block a user