From df15cb2665cae31869415a409d60ca20bf05b916 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Sat, 29 Oct 2022 09:05:12 +0100 Subject: [PATCH] Ignore formatting for vendor Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4be07f7..099e1df 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ build: .PHONY: gofmt gofmt: - @test -z $(shell gofmt -l -s $(SOURCE_DIRS) ./ | tee /dev/stderr) || (echo "[WARN] Fix formatting issues with 'make gofmt'" && exit 1) + @test -z $(shell gofmt -l -s $(SOURCE_DIRS) ./ | grep -v vendor | tee /dev/stderr) || (echo "[WARN] Fix formatting issues with 'make gofmt'" && exit 1) .PHONY: test test: