Remove GO111MODULE from Dockerfile
No need to force the go.mod detection.
@@ -4,7 +4,6 @@ ARG BASE_IMAGE=registry.opensuse.org/cloud/platform/quarks/sle_15_sp1/quarks-ope
FROM golang:1.13.15 AS containerrun
ARG GOPROXY
ENV GOPROXY $GOPROXY
-ENV GO111MODULE "on"
WORKDIR /go/src/code.cloudfoundry.org/quarks-operator
COPY go.mod .
@@ -15,14 +14,11 @@ RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o "/usr/local/bin/container-run" co
FROM golang:1.14.7 AS build
ARG GOPROXY
ENV GOPROXY $GOPROXY
-ARG GO111MODULE="on"
-ENV GO111MODULE $GO111MODULE
WORKDIR /go/src/code.cloudfoundry.org/quarks-operator
# First, download dependencies so we can cache this layer
COPY go.mod .
COPY go.sum .
-RUN if [ "${GO111MODULE}" = "on" ]; then go mod download; fi
# Copy the rest of the source code and build
COPY . .
