11# ###############################################################################
22
3- # This Makefile generated by GoMakeGen 1.3.2 using next command:
4- # gomakegen .
3+ # This Makefile generated by GoMakeGen 1.5.1 using next command:
4+ # gomakegen --mod .
55#
66# More info: https://kaos.sh/gomakegen
77
88# ###############################################################################
99
10+ export GO111MODULE =on
11+
1012.DEFAULT_GOAL := help
11- .PHONY = fmt vet git-config deps-test test help
13+ .PHONY = fmt vet deps deps-test test mod-init mod-update mod-vendor help
1214
1315# ###############################################################################
1416
15- git-config : # # Configure git redirects for stable import path services
16- git config --global http.https://pkg.re.followRedirects true
17+ deps : mod-update # # Download dependencies
1718
18- deps-test : git-config # # Download dependencies for tests
19- go get -d -v pkg.re/essentialkaos/check.v1
19+ deps-test : deps # # Download dependencies for tests
2020
2121test : # # Run tests
2222 go test -covermode=count .
2323
24+ mod-init : # # Initialize new module
25+ go mod init
26+ go mod tidy
27+
28+ mod-update : # # Download modules to local cache
29+ go mod download
30+
31+ mod-vendor : # # Make vendored copy of dependencies
32+ go mod vendor
33+
2434fmt : # # Format source code with gofmt
2535 find . -name " *.go" -exec gofmt -s -w {} \;
2636
@@ -32,6 +42,6 @@ help: ## Show this info
3242 @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) \
3343 | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}'
3444 @echo -e ' '
35- @echo -e ' \033[90mGenerated by GoMakeGen 1.3.2 \033[0m\n'
45+ @echo -e ' \033[90mGenerated by GoMakeGen 1.5.1 \033[0m\n'
3646
3747# ###############################################################################
0 commit comments