-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakeGoMod.mk
More file actions
27 lines (21 loc) · 895 Bytes
/
MakeGoMod.mk
File metadata and controls
27 lines (21 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# this file must use as base Makefile
modVerify:
# in GOPATH must use GO111MODULE=on go mod init to init
-GOPROXY="$(ENV_GO_PROXY)" GO111MODULE=on go mod verify
modDownload:
-GOPROXY="$(ENV_GO_PROXY)" GO111MODULE=on go mod download
-GOPROXY="$(ENV_GO_PROXY)" GO111MODULE=on go mod vendor
modTidy:
-GOPROXY="$(ENV_GO_PROXY)" GO111MODULE=on go mod tidy
dep: modVerify modDownload
@echo "just check depends info below"
modGraphDependencies:
GOPROXY="$(ENV_GO_PROXY)" GO111MODULE=on go mod graph
helpGoMod:
@echo "Help: MakeGoMod.mk"
@echo "this project use go mod, so golang version must 1.12+"
@echo "go mod evn: GOPROXY=$(ENV_GO_PROXY)"
@echo "~> make dep - check depends of project and download all, child task is: modVerify modDownload"
@echo "~> make modGraphDependencies - see depends graph of this project"
@echo "~> make modTidy - tidy depends graph of project"
@echo ""