Skip to content

Commit

Permalink
blabla
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Jul 28, 2021
1 parent 6ddd27d commit ecd9beb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ARG GO_STRIP
ARG CGO_ENABLED
# VERSION sets the version for the produced binary
ARG VERSION
ARG GO111MODULE=off
#ARG GO111MODULE=off
RUN --mount=ro --mount=type=cache,target=/root/.cache \
--mount=from=dockercore/golang-cross:xx-sdk-extras,target=/xx-sdk,src=/xx-sdk \
--mount=type=tmpfs,target=cli/winresources \
Expand All @@ -56,7 +56,7 @@ RUN --mount=ro --mount=type=cache,target=/root/.cache \
xx-verify $([ "$GO_LINKMODE" = "static" ] && echo "--static") /out/docker

FROM build-base-${BASE_VARIANT} AS dev
ENV GO111MODULE=off
#ENV GO111MODULE=off
COPY . .

FROM scratch AS binary
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG GO_VERSION=1.16.6

FROM golang:${GO_VERSION}-alpine AS golang
ENV CGO_ENABLED=0
ENV CGO_ENABLED=0

FROM golang AS esc
ARG ESC_VERSION=v0.2.0
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ARG GITCOMMIT
ENV VERSION=${VERSION}
ENV GITCOMMIT=${GITCOMMIT}
ENV DOCKER_BUILDKIT=1
ENV GO111MODULE=off
#ENV GO111MODULE=off
RUN ./scripts/build/binary
RUN ./scripts/build/plugins e2e/cli-plugins/plugins/*

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/binary
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fi

echo "Building $GO_LINKMODE $(basename "${TARGET}")"

export GO111MODULE=off
export GO111MODULE=auto

go build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}"

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/plugins
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ for p in cli-plugins/examples/* "$@" ; do

echo "Building statically linked $TARGET"
export CGO_ENABLED=0
go build -o "${TARGET}" --ldflags "${LDFLAGS}" "github.com/docker/cli/${p}"
GO111MODULE=auto go build -o "${TARGET}" --ldflags "${LDFLAGS}" "github.com/docker/cli/${p}"
done

0 comments on commit ecd9beb

Please sign in to comment.