From 217c6c4c00a026444b5c837f12049f7a73b2be00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulko?= Date: Tue, 23 Mar 2021 18:54:06 +0100 Subject: [PATCH] CNI: Allow building with go 1.16 This forces the golang modules that we don't support to be off. It's important to allow building kuryr-cni to be built with go 1.16 where modules are on by default. Change-Id: I058ab8d9e5e7df37efeee278ff4652de5f6861f3 --- cni.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cni.Dockerfile b/cni.Dockerfile index 8e8fbb0bd..0840372f4 100644 --- a/cni.Dockerfile +++ b/cni.Dockerfile @@ -2,7 +2,8 @@ FROM quay.io/kuryr/golang:1.15 as builder WORKDIR /go/src/opendev.com/kuryr-kubernetes COPY . . -RUN go build -o /go/bin/kuryr-cni ./kuryr_cni +# FIXME(dulek): I guess we need to switch to modules anyway. +RUN GO111MODULE=off go build -o /go/bin/kuryr-cni ./kuryr_cni FROM registry.centos.org/centos:8 LABEL authors="Antoni Segura Puimedon, MichaƂ Dulko"