11# ###############################################################################
22
3- # This Makefile generated by GoMakeGen 3.2.3 using next command:
3+ # This Makefile generated by GoMakeGen 3.3.2 using next command:
44# gomakegen --mod .
55#
66# More info: https://kaos.sh/gomakegen
@@ -27,7 +27,7 @@ GITREV ?= $(shell test -s $(MAKEDIR)/.git && git rev-parse --short HEAD)
2727# ###############################################################################
2828
2929.DEFAULT_GOAL := help
30- .PHONY = fmt vet all install uninstall clean deps update init vendor mod-init mod-update mod-download mod-vendor help
30+ .PHONY = fmt vet all install uninstall clean deps update init vendor tidy mod-init mod-update mod-download mod-vendor help
3131
3232# ###############################################################################
3333
@@ -53,43 +53,53 @@ update: mod-update ## Update dependencies to the latest versions
5353
5454vendor : mod-vendor # # Make vendored copy of dependencies
5555
56+ tidy : # # Cleanup dependencies
57+ @echo " [32m•[0m[90m•[0m [36;1mTidying up dependencies…[0m"
58+ ifdef COMPAT # # Compatible Go version (String)
59+ @go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT)
60+ else
61+ @go mod tidy $(VERBOSE_FLAG)
62+ endif
63+ @echo "[32m••[0m [36;1mUpdating vendored dependencies…[0m"
64+ @test -d vendor && rm -rf vendor && go mod vendor $(VERBOSE_FLAG) || :
65+
5666mod-init :
57- @echo " [37m[1/3] [0m [36;1mModules initialization…[0m"
67+ @echo " [32m•[0m[90m•• [0m [36;1mModules initialization…[0m"
5868 @rm -f go.mod go.sum
5969ifdef MODULE_PATH # # Module path for initialization (String)
6070 @go mod init $(MODULE_PATH)
6171else
6272 @go mod init
6373endif
6474
65- @echo "[37m[2/3] [0m [36;1mDependencies cleanup…[0m"
75+ @echo "[32m••[0m[90m• [0m [36;1mDependencies cleanup…[0m"
6676ifdef COMPAT # # Compatible Go version (String)
6777 @go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT)
6878else
6979 @go mod tidy $(VERBOSE_FLAG)
7080endif
71- @echo "[37m[3/3] [0m [36;1mStripping toolchain info…[0m"
81+ @echo "[32m••• [0m [36;1mStripping toolchain info…[0m"
7282 @grep -q 'toolchain ' go.mod && go mod edit -toolchain=none || :
7383
7484mod-update :
75- @echo " [37m[1/4] [0m [36;1mUpdating dependencies…[0m"
85+ @echo " [32m•[0m[90m••• [0m [36;1mUpdating dependencies…[0m"
7686ifdef UPDATE_ALL # # Update all dependencies (Flag)
7787 @go get -u $(VERBOSE_FLAG) all
7888else
7989 @go get -u $(VERBOSE_FLAG) ./...
8090endif
8191
82- @echo "[37m[2/4] [0m [36;1mStripping toolchain info…[0m"
92+ @echo "[32m••[0m[90m•• [0m [36;1mStripping toolchain info…[0m"
8393 @grep -q 'toolchain ' go.mod && go mod edit -toolchain=none || :
8494
85- @echo "[37m[3/4] [0m [36;1mDependencies cleanup…[0m"
95+ @echo "[32m•••[0m[90m• [0m [36;1mDependencies cleanup…[0m"
8696ifdef COMPAT
8797 @go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT)
8898else
8999 @go mod tidy $(VERBOSE_FLAG)
90100endif
91101
92- @echo "[37m[4/4] [0m [36;1mUpdating vendored dependencies…[0m"
102+ @echo "[32m•••• [0m [36;1mUpdating vendored dependencies…[0m"
93103 @test -d vendor && rm -rf vendor && go mod vendor $(VERBOSE_FLAG) || :
94104
95105mod-download :
@@ -122,6 +132,6 @@ help: ## Show this info
122132 | sort -h \
123133 | awk ' BEGIN {FS = " .*?## "}; {printf " \033[32m%-11s\033[0m %s\n", $$1, $$2}'
124134 @echo -e ' '
125- @echo -e ' \033[90mGenerated by GoMakeGen 3.2.3 \033[0m\n'
135+ @echo -e ' \033[90mGenerated by GoMakeGen 3.3.2 \033[0m\n'
126136
127137# ###############################################################################
0 commit comments