From 9f6fc52f098bae3891550dbef70f949ee65d1ea9 Mon Sep 17 00:00:00 2001 From: Yanghao LUO Date: Wed, 6 Dec 2023 16:56:26 +0800 Subject: [PATCH] chore: fix the problem of `make fmt-faster` formatting non-go files --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index fcf1c17994..b74fe3138a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,7 +1,7 @@ TEST?=./... GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) PKG_NAME=tencentcloud -CHANGED_FILES=$$(git diff --name-only master -- $(PKG_NAME)) +CHANGED_FILES=$$(git diff --name-only master -- $(PKG_NAME) | grep '.go$$') WEBSITE_REPO=github.com/hashicorp/terraform-website PLATFORMS=darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm openbsd/amd64 openbsd/386 solaris/amd64 windows/386 windows/amd64 GO_VER ?= go