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.
This commit is contained in:
Paul Hinze 2016-02-01 11:28:41 -06:00
parent 8d0b289451
commit 6791172e21
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ gox \
-arch="${XC_ARCH}" \ -arch="${XC_ARCH}" \
-ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \
-output "pkg/{{.OS}}_{{.Arch}}/terraform-{{.Dir}}" \ -output "pkg/{{.OS}}_{{.Arch}}/terraform-{{.Dir}}" \
./... $(go list ./... | grep -v /vendor/)
# Make sure "terraform-terraform" is renamed properly # Make sure "terraform-terraform" is renamed properly
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do