Skip to content

Commit e7f2337

Browse files
committed
Regenerate Makefile with the latest version of gomakegen
1 parent 8f3a6a5 commit e7f2337

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
################################################################################
22

3-
# This Makefile generated by GoMakeGen 3.2.1 using next command:
3+
# This Makefile generated by GoMakeGen 3.2.3 using next command:
44
# gomakegen --mod .
55
#
66
# More info: https://kaos.sh/gomakegen
@@ -48,19 +48,22 @@ else
4848
endif
4949

5050
mod-init:
51-
@echo "[1/2] Modules initialization…"
51+
@echo "[1/3] Modules initialization…"
52+
@rm -f go.mod go.sum
5253
ifdef MODULE_PATH ## Module path for initialization (String)
5354
@go mod init $(MODULE_PATH)
5455
else
5556
@go mod init
5657
endif
5758

58-
@echo "[37m[2/2][0m [36;1mDependencies cleanup…[0m"
59+
@echo "[37m[2/3][0m [36;1mDependencies cleanup…[0m"
5960
ifdef COMPAT ## Compatible Go version (String)
6061
@go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT)
6162
else
6263
@go mod tidy $(VERBOSE_FLAG)
6364
endif
65+
@echo "[3/3] Stripping toolchain info…"
66+
@grep -q 'toolchain ' go.mod && go mod edit -toolchain=none || :
6467

6568
mod-update:
6669
@echo "[1/4] Updating dependencies…"
@@ -109,6 +112,6 @@ help: ## Show this info
109112
| sort -h \
110113
| awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-13s\033[0m %s\n", $$1, $$2}'
111114
@echo -e ''
112-
@echo -e '\033[90mGenerated by GoMakeGen 3.2.1\033[0m\n'
115+
@echo -e '\033[90mGenerated by GoMakeGen 3.2.3\033[0m\n'
113116

114117
################################################################################

0 commit comments

Comments
 (0)