diff --git a/SHA256SUMS b/SHA256SUMS index 659f690..648922e 100644 --- a/SHA256SUMS +++ b/SHA256SUMS @@ -1,2 +1,2 @@ 05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh -a74844ac5c37963f276e8af9cb7cb46cde38dc18a4dbdc6c3b2ca37b362e87e5 golang.sh +05a1b2e610923d782078455a64ef0a6c32b1e2f21b1f1ee3a3bac0d5d1db6ee3 golang.sh diff --git a/golang.sh b/golang.sh index b28f33c..222ecd6 100755 --- a/golang.sh +++ b/golang.sh @@ -13,24 +13,26 @@ function step() { echo "===> $@..." } -VERSION=$(git describe --tags --always || echo "dev") -PWD=$(pwd) -godir=${PWD/${GOPATH}\/src\//} -REPO=${REPO:-$(echo ${godir} | cut -d '/' -f 3)} -GHUSER=${GHUSER:-$(echo ${godir} | cut -d '/' -f 2)} ARCHS=${ARCHS:-"linux/amd64 linux/arm darwin/amd64 windows/amd64"} -DEPLOYMENT_TAG=${DEPLOYMENT_TAG:-${VERSION}} -PACKAGES=${PACKAGES:-$(echo ${godir} | cut -d '/' -f 1-3)} BUILD_DIR=${BUILD_DIR:-.build} +DEPLOYMENT_TAG=${DEPLOYMENT_TAG:-${VERSION}} DRAFT=${DRAFT:-true} FORCE_SKIP_UPLOAD=${FORCE_SKIP_UPLOAD:-false} +GHUSER=${GHUSER:-$(echo ${godir} | cut -d '/' -f 2)} +godir=${PWD/${GOPATH}\/src\//} MOD_MODE=${MOD_MODE:-} +PACKAGES=${PACKAGES:-$(echo ${godir} | cut -d '/' -f 1-3)} +PWD=$(pwd) +REPO=${REPO:-$(echo ${godir} | cut -d '/' -f 3)} +VERSION=$(git describe --tags --always || echo "dev") go version step "Retrieve dependencies" +pushd ${GOPATH} go get github.com/aktau/github-release go get github.com/mitchellh/gox +popd step "Test code" go vet ${PACKAGES}