Merge pull request #1358 from yousong/bugfix/yousong-go-mod

build: fix "make mod" target
This commit is contained in:
yunion-ci-robot
2019-06-24 20:54:50 +08:00
committed by GitHub
+2 -2
View File
@@ -64,7 +64,7 @@ gencopyright:
@sh scripts/gencopyright.sh pkg cmd
test:
@go test $(shell go list ./... | egrep -v 'host-image|hostimage')
@go test $(shell GO111MODULE=on go list ./... | egrep -v 'host-image|hostimage')
vet:
go vet ./...
@@ -126,7 +126,7 @@ dep:
@$(MAKE) mod
mod:
go get $(patsubst %,%@master,$(shell go mod edit -print | sed -n -r -e 's|.*(yunion.io/x/[a-z]+) v.*|\1|p'))
go get $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -r -e 's|.*(yunion.io/x/[a-z]+) v.*|\1|p'))
go mod tidy
go mod vendor -v