You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM --platform=${BUILDPLATFORM} ${TOOLCHAIN} AS toolchain
25
24
RUN apk --update --no-cache add bash curl build-base protoc protobuf-dev
26
25
27
26
# build tools
28
27
FROM --platform=${BUILDPLATFORM} toolchain AS tools
29
-
ENV GO111MODULEon
28
+
ENV GO111MODULE=on
30
29
ARG CGO_ENABLED
31
-
ENV CGO_ENABLED${CGO_ENABLED}
30
+
ENV CGO_ENABLED=${CGO_ENABLED}
32
31
ARG GOTOOLCHAIN
33
-
ENV GOTOOLCHAIN${GOTOOLCHAIN}
32
+
ENV GOTOOLCHAIN=${GOTOOLCHAIN}
34
33
ARG GOEXPERIMENT
35
-
ENV GOEXPERIMENT${GOEXPERIMENT}
36
-
ENV GOPATH/go
34
+
ENV GOEXPERIMENT=${GOEXPERIMENT}
35
+
ENV GOPATH=/go
37
36
ARG DEEPCOPY_VERSION
38
37
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install github.com/siderolabs/deep-copy@${DEEPCOPY_VERSION} \
39
38
&& mv /go/bin/deep-copy /bin/deep-copy
@@ -82,7 +81,7 @@ RUN FILES="$(gofumpt -l .)" && test -z "${FILES}" || (echo -e "Source code is no
82
81
FROM base AS lint-golangci-lint
83
82
WORKDIR /src
84
83
COPY .golangci.yml .
85
-
ENV GOGC50
84
+
ENV GOGC=50
86
85
RUN golangci-lint config verify --config .golangci.yml
87
86
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/root/.cache/golangci-lint --mount=type=cache,target=/go/pkg golangci-lint run --config .golangci.yml
0 commit comments