Makefile: Use go modules vendor files only for test/build

This commit is contained in:
Paul Querna 2019-05-06 16:44:38 -07:00
parent 748eb367fa
commit 85cc242491
No known key found for this signature in database
GPG Key ID: E6B265F073D7A8CB
1 changed files with 2 additions and 2 deletions

View File

@ -29,11 +29,11 @@ clean:
.PHONY: cloudflared
cloudflared: tunnel-deps
go build -v $(VERSION_FLAGS) $(IMPORT_PATH)/cmd/cloudflared
go build -mod=vendor -v $(VERSION_FLAGS) $(IMPORT_PATH)/cmd/cloudflared
.PHONY: test
test: vet
go test -v -race $(VERSION_FLAGS) ./...
go test -mod=vendor -v -race $(VERSION_FLAGS) ./...
.PHONY: cloudflared-deb
cloudflared-deb: cloudflared