From 6791172e2162f63ae06f4801ab05d495089c7602 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Mon, 1 Feb 2016 11:28:41 -0600 Subject: [PATCH] build.sh: don't dive into vendored deps when building Doing a straight `./...` build results in errors from unvendored package references being picked up in some vendored libraries' `examples/` subdirs. So we'll switch to the recommended `go list | grep -v /vendor/` strategy to determine what to build. --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index af8904511..fbaee92a2 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -41,7 +41,7 @@ gox \ -arch="${XC_ARCH}" \ -ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -output "pkg/{{.OS}}_{{.Arch}}/terraform-{{.Dir}}" \ - ./... + $(go list ./... | grep -v /vendor/) # Make sure "terraform-terraform" is renamed properly for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do