From d999459207697353bb877bd34958b6904a9f6dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Th=C3=B6mmes?= Date: Wed, 11 Mar 2020 10:34:17 +0100 Subject: [PATCH] Use buildflag to workaround gcp behavior. --- Makefile | 2 +- openshift/productization/generate-dockerfiles/Dockerfile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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