From 33db83208780a6b4f2642318482b5cad2931f7f6 Mon Sep 17 00:00:00 2001 From: Nikita Vaniasin Date: Fri, 29 Sep 2023 13:53:26 +0200 Subject: [PATCH] Print yaml file which is not formatted properly (#1414) currently `make yamlfmt` does not print out which file has incorrect formatting --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 04ad0016d..602a8c828 100644 --- a/Makefile +++ b/Makefile @@ -268,8 +268,8 @@ fmt: .PHONY: yamlfmt yamlfmt: @echo ">> Ensuring style of yaml files" - @$(GOPATH)/bin/yamlfmt -w $(YAMLS) - @$(GOPATH)/bin/yamlfmt -w $(YAMLS) + @$(foreach YAML,$(YAMLS),echo "yamlfmt $(YAML):" && $(GOPATH)/bin/yamlfmt -w $(YAML) || exit 1; ) + @$(foreach YAML,$(YAMLS),echo "yamlfmt $(YAML):" && $(GOPATH)/bin/yamlfmt -w $(YAML) || exit 1; ) .PHONY: license license: