mirror of https://github.com/docker/cli.git
Update gometalinter to v2.0.6 and remove alexkohler/nakedret
alexkohler/nakedret is now installed by default with gometalinter, so it's no longer needed to install this manually Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
d97f378009
commit
f3811e865e
|
@ -2,7 +2,7 @@ FROM golang:1.10.3-alpine
|
||||||
|
|
||||||
RUN apk add -U git
|
RUN apk add -U git
|
||||||
|
|
||||||
ARG GOMETALINTER_SHA=7f9672e7ea538b8682e83395d50b12f09bb17b91
|
ARG GOMETALINTER_SHA=v2.0.6
|
||||||
RUN go get -d github.com/alecthomas/gometalinter && \
|
RUN go get -d github.com/alecthomas/gometalinter && \
|
||||||
cd /go/src/github.com/alecthomas/gometalinter && \
|
cd /go/src/github.com/alecthomas/gometalinter && \
|
||||||
git checkout -q "$GOMETALINTER_SHA" && \
|
git checkout -q "$GOMETALINTER_SHA" && \
|
||||||
|
@ -10,13 +10,6 @@ RUN go get -d github.com/alecthomas/gometalinter && \
|
||||||
gometalinter --install && \
|
gometalinter --install && \
|
||||||
rm -rf /go/src/* /go/pkg/*
|
rm -rf /go/src/* /go/pkg/*
|
||||||
|
|
||||||
ARG NAKEDRET_SHA=3ddb495a6d63bc9041ba843e7d651cf92639d8cb
|
|
||||||
RUN go get -d github.com/alexkohler/nakedret && \
|
|
||||||
cd /go/src/github.com/alexkohler/nakedret && \
|
|
||||||
git checkout -q "$NAKEDRET_SHA" && \
|
|
||||||
go build -v -o /usr/local/bin/nakedret . && \
|
|
||||||
rm -rf /go/src/* /go/pkg/*
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/docker/cli
|
WORKDIR /go/src/github.com/docker/cli
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
||||||
|
|
Loading…
Reference in New Issue