diff --git a/Makefile b/Makefile index cf32fa1..0b50603 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ################################################################################ -# This Makefile generated by GoMakeGen 3.2.0 using next command: +# This Makefile generated by GoMakeGen 3.2.3 using next command: # gomakegen --mod . # # More info: https://kaos.sh/gomakegen @@ -21,7 +21,6 @@ else export CGO_ENABLED=0 endif -COMPAT ?= 1.19 MAKEDIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) GITREV ?= $(shell test -s $(MAKEDIR)/.git && git rev-parse --short HEAD) @@ -55,19 +54,22 @@ update: mod-update ## Update dependencies to the latest versions vendor: mod-vendor ## Make vendored copy of dependencies mod-init: - @echo "[1/2] Modules initialization…" + @echo "[1/3] Modules initialization…" + @rm -f go.mod go.sum ifdef MODULE_PATH ## Module path for initialization (String) @go mod init $(MODULE_PATH) else @go mod init endif - @echo "[2/2] Dependencies cleanup…" + @echo "[2/3] Dependencies cleanup…" ifdef COMPAT ## Compatible Go version (String) @go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT) else @go mod tidy $(VERBOSE_FLAG) endif + @echo "[3/3] Stripping toolchain info…" + @grep -q 'toolchain ' go.mod && go mod edit -toolchain=none || : mod-update: @echo "[1/4] Updating dependencies…" @@ -120,6 +122,6 @@ help: ## Show this info | sort -h \ | awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-11s\033[0m %s\n", $$1, $$2}' @echo -e '' - @echo -e '\033[90mGenerated by GoMakeGen 3.2.0\033[0m\n' + @echo -e '\033[90mGenerated by GoMakeGen 3.2.3\033[0m\n' ################################################################################