diff --git a/Makefile b/Makefile index 41492ffa21..4c19eca470 100644 --- a/Makefile +++ b/Makefile @@ -54,12 +54,12 @@ word-hyphen = $(word $2,$(subst -, ,$1)) .PHONY: linux/$(ARCH) bin/aws-ebs-csi-driver linux/$(ARCH): bin/aws-ebs-csi-driver bin/aws-ebs-csi-driver: | bin - CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -mod=mod -ldflags ${LDFLAGS} -o bin/aws-ebs-csi-driver ./cmd/ + CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -mod=vendor -ldflags ${LDFLAGS} -o bin/aws-ebs-csi-driver ./cmd/ .PHONY: windows/$(ARCH) bin/aws-ebs-csi-driver.exe windows/$(ARCH): bin/aws-ebs-csi-driver.exe bin/aws-ebs-csi-driver.exe: | bin - CGO_ENABLED=0 GOOS=windows GOARCH=$(ARCH) go build -mod=mod -ldflags ${LDFLAGS} -o bin/aws-ebs-csi-driver.exe ./cmd/ + CGO_ENABLED=0 GOOS=windows GOARCH=$(ARCH) go build -mod=vendor -ldflags ${LDFLAGS} -o bin/aws-ebs-csi-driver.exe ./cmd/ # Builds all linux images (not windows because it can't be exported with OUTPUT_TYPE=docker) .PHONY: all