diff --git a/Makefile b/Makefile index 94d58d457dac..318be23278f1 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ TEST_IMAGES=$(shell find ./test/test_images -mindepth 1 -maxdepth 1 -type d) install: for img in $(CORE_IMAGES); do \ - go install $$img ; \ + go -tags="disable_gcp" install $$img ; \ done .PHONY: install diff --git a/openshift/productization/generate-dockerfiles/Dockerfile.in b/openshift/productization/generate-dockerfiles/Dockerfile.in index ac70325ec338..ee7b0c0c095c 100644 --- a/openshift/productization/generate-dockerfiles/Dockerfile.in +++ b/openshift/productization/generate-dockerfiles/Dockerfile.in @@ -1,7 +1,7 @@ FROM rhel8/go-toolset:1.13.4 AS builder WORKDIR /opt/app-root/src/go/src/knative.dev/$COMPONENT COPY . . -ENV GOFLAGS="-mod=vendor" +ENV GOFLAGS="-mod=vendor -tags=disable_gcp" RUN go build -o /tmp/$SUBCOMPONENT ./cmd/$GO_PACKAGE FROM ubi8-minimal:8-released