mirror of https://github.com/status-im/consul.git
Fix #1488
gox doesn't get copied anywhere that might be in the users $PATH by default, however if someone has a functional Go setup they are required to have a $GOPATH variable which will contain their Go workspace and executables of all built go programs under $GOPATH/bin There are certainly many solutions to this but after reading the Go documentation this seemed to me like it would be the quickest and most cross-platform.
This commit is contained in:
parent
c353aa9260
commit
dc9b9168d1
|
@ -38,7 +38,7 @@ fi
|
||||||
|
|
||||||
# Build!
|
# Build!
|
||||||
echo "==> Building..."
|
echo "==> Building..."
|
||||||
gox \
|
$GOPATH/bin/gox \
|
||||||
-os="${XC_OS}" \
|
-os="${XC_OS}" \
|
||||||
-arch="${XC_ARCH}" \
|
-arch="${XC_ARCH}" \
|
||||||
-ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY} -X main.GitDescribe ${GIT_DESCRIBE}" \
|
-ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY} -X main.GitDescribe ${GIT_DESCRIBE}" \
|
||||||
|
|
Loading…
Reference in New Issue