From 1e8879ed75199a907a7037b8146896c4f981bd5b Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Wed, 19 Jul 2017 18:44:21 +1000 Subject: [PATCH] chore(build): exclude vendor when x-compiling --- scripts/build.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 8e66c10..e3fbb59 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -25,10 +25,6 @@ fi XC_ARCH=${XC_ARCH:-"386 amd64 arm"} XC_OS=${XC_OS:-linux darwin windows freebsd openbsd} -# Install dependencies -echo "==> Getting dependencies..." -go get ./... - # Delete the old dir echo "==> Removing old directory..." rm -f bin/* @@ -41,9 +37,8 @@ set +e gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ - -ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -output "pkg/{{.OS}}_{{.Arch}}/packer-{{.Dir}}" \ - ./... + ./plugin/provisioner-dsc set -e # Move all the compiled things to the $GOPATH/bin