build/Makefile: Properly exclude files under "./vendor/" path for `go fmt` (#19097)

Properly exclude files under "./vendor/" path, and find "files" only.
The original method "might" found "directories" with the same naming,
or, might exclude occasionally exclude the go files with "vendor" string
in any part of its path.
This commit is contained in:
Peter Dave Hello 2019-09-06 20:58:34 +08:00 committed by Kristin Laemmert
parent f9380fd9be
commit 0c63c7c854
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
VERSION?="0.3.32" VERSION?="0.3.32"
TEST?=./... TEST?=./...
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor) GOFMT_FILES?=$$(find . -not -path "./vendor/*" -type f -name '*.go')
WEBSITE_REPO=github.com/hashicorp/terraform-website WEBSITE_REPO=github.com/hashicorp/terraform-website
default: test default: test