mirror of https://github.com/hashicorp/consul
check for go binary in ci builds (#6570)
parent
fc4bcfd81f
commit
b52cd5c8cd
|
@ -9,13 +9,15 @@ GO_BUILD_CONTAINER_DEFAULT="consul-build-go"
|
||||||
COLORIZE=${COLORIZE-1}
|
COLORIZE=${COLORIZE-1}
|
||||||
|
|
||||||
# determine GOPATH and the first GOPATH to use for intalling binaries
|
# determine GOPATH and the first GOPATH to use for intalling binaries
|
||||||
GOPATH=${GOPATH:-$(go env GOPATH)}
|
if command -v go >/dev/null; then
|
||||||
case $(uname) in
|
GOPATH=${GOPATH:-$(go env GOPATH)}
|
||||||
CYGWIN*)
|
case $(uname) in
|
||||||
GOPATH="$(cygpath $GOPATH)"
|
CYGWIN*)
|
||||||
;;
|
GOPATH="$(cygpath $GOPATH)"
|
||||||
esac
|
;;
|
||||||
MAIN_GOPATH=$(cut -d: -f1 <<< "${GOPATH}")
|
esac
|
||||||
|
MAIN_GOPATH=$(cut -d: -f1 <<< "${GOPATH}")
|
||||||
|
fi
|
||||||
|
|
||||||
# Build debugging output is off by default
|
# Build debugging output is off by default
|
||||||
BUILD_DEBUG=${BUILD_DEBUG-0}
|
BUILD_DEBUG=${BUILD_DEBUG-0}
|
||||||
|
|
Loading…
Reference in New Issue