Skip to content

Commit

Permalink
change to go mod vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
gujingit committed Nov 22, 2021
1 parent 58eb3cb commit c9ed1fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ clean: clean-cache clean-output
.PHONY: all make-cache clean-cache out-dir clean-output cloud-controller-manager build install clean

unit-test:
GO111MODULE=on go test -mod readonly -v -race -coverprofile=coverage.txt -covermode=atomic \
GO111MODULE=on go test -mod vendor -v -race -coverprofile=coverage.txt -covermode=atomic \
k8s.io/cloud-provider-alibaba-cloud/cloud-controller-manager \
k8s.io/cloud-provider-alibaba-cloud/cloud-controller-manager/controller/route

Expand All @@ -169,7 +169,7 @@ test:
-v $(HOME)/mod:/go/pkg/mod \
golang:1.14.1 /bin/bash -c '\
cd /go/src/k8s.io/cloud-provider-alibaba-cloud && \
go test -mod readonly -v -race -coverprofile=coverage.txt -covermode=atomic \
go test -mod vendor -v -race -coverprofile=coverage.txt -covermode=atomic \
k8s.io/cloud-provider-alibaba-cloud/cloud-controller-manager \
k8s.io/cloud-provider-alibaba-cloud/cloud-controller-manager/controller/route'

Expand All @@ -182,7 +182,7 @@ e2etest:
-v /root/.kube/config.cloud:/root/.kube/config.cloud \
golang:1.14.1 /bin/bash -c '\
cd /go/src/k8s.io/cloud-provider-alibaba-cloud && \
go test -mod readonly -v \
go test -mod vendor -v \
k8s.io/cloud-provider-alibaba-cloud/cmd/e2e \
-test.run ^TestE2E$ \
--kubeconfig /root/.kube/config \
Expand Down

0 comments on commit c9ed1fe

Please sign in to comment.