Add new Go modules stuff

This commit is contained in:
Andrey Smirnov
2019-09-27 00:49:56 +03:00
committed by Andrey Smirnov
parent 0146411483
commit 19db62d74f
6 changed files with 172 additions and 10 deletions
+7 -3
View File
@@ -11,13 +11,17 @@ TESTS?=
BINPATH?=$(GOPATH)/bin
RUN_LONG_TESTS?=yes
all: test bench check system-test
all: modules test bench check system-test
prepare:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.17.1
modules:
go mod download
go mod verify
go mod tidy -v
dev:
go get -u github.com/golang/dep/...
go get -u github.com/laher/goxc
check: system/env
@@ -74,4 +78,4 @@ man:
version:
@echo $(VERSION)
.PHONY: man version release goxc
.PHONY: man modules version release goxc