Skip to content

Commit d4f0a4d

Browse files
committed
Regenerate Makefile with the latest version of gomakegen
1 parent f8127f2 commit d4f0a4d

1 file changed

Lines changed: 20 additions & 10 deletions

File tree

Makefile

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

5454
vendor: mod-vendor ## Make vendored copy of dependencies
5555

56+
tidy: ## Cleanup dependencies
57+
@echo "•• Tidying up dependencies…"
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 "•• Updating vendored dependencies…"
64+
@test -d vendor && rm -rf vendor && go mod vendor $(VERBOSE_FLAG) || :
65+
5666
mod-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
5969
ifdef MODULE_PATH ## Module path for initialization (String)
6070
@go mod init $(MODULE_PATH)
6171
else
6272
@go mod init
6373
endif
6474

65-
@echo "[37m[2/3][0m [36;1mDependencies cleanup…[0m"
75+
@echo "[32m••[0m[90m•[0m [36;1mDependencies cleanup…[0m"
6676
ifdef COMPAT ## Compatible Go version (String)
6777
@go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT)
6878
else
6979
@go mod tidy $(VERBOSE_FLAG)
7080
endif
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

7484
mod-update:
75-
@echo "[37m[1/4][0m [36;1mUpdating dependencies…[0m"
85+
@echo "[32m•[0m[90m•••[0m [36;1mUpdating dependencies…[0m"
7686
ifdef UPDATE_ALL ## Update all dependencies (Flag)
7787
@go get -u $(VERBOSE_FLAG) all
7888
else
7989
@go get -u $(VERBOSE_FLAG) ./...
8090
endif
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"
8696
ifdef COMPAT
8797
@go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT)
8898
else
8999
@go mod tidy $(VERBOSE_FLAG)
90100
endif
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

95105
mod-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

Comments
 (0)