From d840561036b74ddbc1361d65a4f1789af414559e Mon Sep 17 00:00:00 2001 From: JimMoen Date: Wed, 24 Jan 2024 21:53:23 +0800 Subject: [PATCH] build: direct paths to avoid wildcard traversal of the _build dir - erlfmt always try loop through files in the `--exclude-files` dir --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 48ca7ebcb..739195926 100644 --- a/Makefile +++ b/Makefile @@ -316,10 +316,9 @@ $(foreach tt,$(ALL_ELIXIR_TGZS),$(eval $(call gen-elixir-tgz-target,$(tt)))) .PHONY: fmt fmt: $(REBAR) @$(SCRIPTS)/erlfmt -w 'apps/*/{src,include,priv,test,integration_test}/**/*.{erl,hrl,app.src,eterm}' - @$(SCRIPTS)/erlfmt -w '**/*.escript' --exclude-files '_build/**' - @$(SCRIPTS)/erlfmt -w '**/rebar.config' --exclude-files '_build/**' - @$(SCRIPTS)/erlfmt -w 'rebar.config.erl' - @$(SCRIPTS)/erlfmt -w 'bin/nodetool' + @$(SCRIPTS)/erlfmt -w 'apps/*/rebar.config' 'apps/emqx/rebar.config.script' '.ci/fvt_tests/http_server/rebar.config' + @$(SCRIPTS)/erlfmt -w 'rebar.config' 'rebar.config.erl' + @$(SCRIPTS)/erlfmt -w 'scripts/*.escript' 'bin/*.escript' 'bin/nodetool' @mix format .PHONY: clean-test-cluster-config