Skip to content

Commit

Permalink
force use of vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezl committed Jan 21, 2020
1 parent c1a53f5 commit 657a724
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DELETE ?= "gcloud container images delete"

.PHONY: test
test:
go test ./pkg/...
GO111MODULE=on go test -mod=vendor ./pkg/...

.PHONY: all
all:
Expand All @@ -31,19 +31,19 @@ endif

.PHONY: all-containers
all-containers:
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X github.com/kubernetes-sigs/kube-storage-version-migrator/pkg/version.VERSION=$(VERSION)" -a -installsuffix cgo -o cmd/initializer/initializer ./cmd/initializer
CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -mod=vendor -ldflags "-X github.com/kubernetes-sigs/kube-storage-version-migrator/pkg/version.VERSION=$(VERSION)" -a -installsuffix cgo -o cmd/initializer/initializer ./cmd/initializer
docker build --no-cache -t $(REGISTRY)/storage-version-migration-initializer:$(VERSION) cmd/initializer
rm cmd/initializer/initializer
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X github.com/kubernetes-sigs/kube-storage-version-migrator/pkg/version.VERSION=$(VERSION)" -a -installsuffix cgo -o cmd/migrator/migrator ./cmd/migrator
CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -mod=vendor -ldflags "-X github.com/kubernetes-sigs/kube-storage-version-migrator/pkg/version.VERSION=$(VERSION)" -a -installsuffix cgo -o cmd/migrator/migrator ./cmd/migrator
docker build --no-cache -t $(REGISTRY)/storage-version-migration-migrator:$(VERSION) cmd/migrator
rm cmd/migrator/migrator
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X github.com/kubernetes-sigs/kube-storage-version-migrator/pkg/version.VERSION=$(VERSION)" -a -installsuffix cgo -o cmd/trigger/trigger ./cmd/trigger
CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -mod=vendor -ldflags "-X github.com/kubernetes-sigs/kube-storage-version-migrator/pkg/version.VERSION=$(VERSION)" -a -installsuffix cgo -o cmd/trigger/trigger ./cmd/trigger
docker build --no-cache -t $(REGISTRY)/storage-version-migration-trigger:$(VERSION) cmd/trigger
rm cmd/trigger/trigger

.PHONY: e2e-test
e2e-test:
CGO_ENABLED=0 GOOS=linux go test -c -o ./test/e2e/e2e.test ./test/e2e
CGO_ENABLED=0 GOOS=linux GO111MODULE=on go test -mod=vendor -c -o ./test/e2e/e2e.test ./test/e2e

.PHONY: local-manifests
local-manifests:
Expand Down

0 comments on commit 657a724

Please sign in to comment.