From 30f483a5244ab1bc8edc7ee5d9d723b1fe8e6704 Mon Sep 17 00:00:00 2001 From: Starccck <28645972+starccck@users.noreply.github.com> Date: Mon, 24 Apr 2023 21:50:10 +0800 Subject: [PATCH] correct makefile (#2597) --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index eee8dddc7..b8c6f6f6f 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ lint: # make version to=v2.4.0 .PHONY: version version: - $(eval files=$(shell find . -name go.mod)) + $(eval files=$(shell find . -name go.mod)) @set -e; \ newVersion=$(to); \ echo "The version will be set to $$newVersion"; \ @@ -36,9 +36,8 @@ version: for file in ${files}; do \ goModPath=$$(dirname $$file); \ if [[ $$goModPath =~ "./contrib" || $$goModPath =~ "./cmd/gf" || $$goModPath =~ "./example" ]]; then \ - echo ""; \ + echo "" ; \ echo "processing dir: $$goModPath"; \ - # Do not modify the order of any of the following sentences \ cd $$goModPath; \ go mod tidy; \ go list -f "{{if and (not .Indirect) (not .Main)}}{{.Path}}@$$latestVersion{{end}}" -m all | grep "^github.com/gogf/gf/contrib" | xargs -L1 go get -v; \