From 7436c63a4823712dc846de0a4b247b4de43df6cd Mon Sep 17 00:00:00 2001 From: Sam Batschelet Date: Sun, 28 Mar 2021 14:54:47 -0400 Subject: [PATCH] Dockerfile-test: use ubuntu LTS and build workaround for old go-tools Signed-off-by: Sam Batschelet --- Dockerfile-test | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Dockerfile-test b/Dockerfile-test index 8e0be6a3f..b6be04df0 100644 --- a/Dockerfile-test +++ b/Dockerfile-test @@ -1,4 +1,4 @@ -FROM ubuntu:16.10 +FROM ubuntu:16.04 RUN rm /bin/sh && ln -s /bin/bash /bin/sh RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections @@ -29,6 +29,7 @@ RUN apt-get -y update \ && apt-get -y autoremove \ && apt-get -y autoclean +ENV GO111MODULE=off ENV GOROOT /usr/local/go ENV GOPATH /go ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH} @@ -46,11 +47,18 @@ ADD ./scripts/install-marker.sh /tmp/install-marker.sh RUN go get -v -u -tags spell github.com/chzchzchz/goword \ && go get -v -u github.com/coreos/license-bill-of-materials \ - && go get -v -u honnef.co/go/tools/cmd/gosimple \ - && go get -v -u honnef.co/go/tools/cmd/unused \ - && go get -v -u honnef.co/go/tools/cmd/staticcheck \ && go get -v -u github.com/wadey/gocovmerge \ && go get -v -u github.com/gordonklaus/ineffassign \ + && mkdir -p $GOPATH/src/honnef.co/go/tools \ + && git clone https://github.com/dominikh/go-tools.git $GOPATH/src/honnef.co/go/tools \ + && cd $GOPATH/src/honnef.co/go/tools/cmd/staticcheck \ + && git checkout 2017.2.2 \ + && go get \ + && go install \ + && cd $GOPATH/src/honnef.co/go/tools/cmd/gosimple \ + && go install \ + && cd $GOPATH/src/honnef.co/go/tools/cmd/unused \ + && go install \ && /tmp/install-marker.sh amd64 \ && rm -f /tmp/install-marker.sh \ && curl -s https://codecov.io/bash >/codecov \