From b527d1cc53f81c2282ad7c071a18a78913d74253 Mon Sep 17 00:00:00 2001 From: Todd Short Date: Fri, 24 Oct 2025 09:54:01 -0400 Subject: [PATCH] Add option to yamlfmt to ignore vendor directories The `make fmt` target now includes YAML formatting. This is causing an issue downstream where vendored YAML files are being formatted. This fix excludes vendor directories (and other files) based on the project's .gitignore. Signed-off-by: Todd Short --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2304a633e..379599d92 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ fix-lint: $(GOLANGCI_LINT) #EXHELP Fix lint issues .PHONY: fmt fmt: $(YAMLFMT) #EXHELP Formats code go fmt ./... - $(YAMLFMT) testdata + $(YAMLFMT) -gitignore_excludes testdata .PHONY: update-tls-profiles update-tls-profiles: $(GOJQ) #EXHELP Update TLS profiles from the Mozilla wiki