From 6dfefe39cec2d699654210ca3261a6c6149a9e97 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 24 Nov 2020 12:34:31 +0100 Subject: [PATCH] make: exclude autogenerated files from go fmt --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4b10a2ffa..b37be265c 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ GOINSTALL := GO111MODULE=on go install -v GOTEST := GO111MODULE=on go test GOVERSION := $(shell go version | awk '{print $$3}') -GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*") +GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -name "*pb.go" -not -name "*pb.gw.go") RM := rm -f CP := cp