Skip to content

Commit 100ae5e

Browse files
committed
chore(roots/Dockerfile): use binary release for gometalinter
This is the recommended installation according to the author.
1 parent 7be8016 commit 100ae5e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

rootfs/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ENV AZCLI_VERSION=2.0.30 \
44
GO_VERSION=1.10.1 \
55
GLIDE_VERSION=v0.13.1 \
66
GLIDE_HOME=/root \
7+
GOMETALINTER_VERSION=2.0.5 \
78
HELM_VERSION=v2.6.0 \
89
KUBECTL_VERSION=v1.9.6 \
910
SHELLCHECK_VERSION=v0.4.6 \
@@ -58,8 +59,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
5859
&& chmod +x -R /usr/local/bin/docker \
5960
&& rm docker-17.05.0-ce.tgz \
6061
&& go get -u -v \
61-
github.com/alecthomas/gometalinter \
62-
gopkg.in/alecthomas/gometalinter.v2 \
6362
github.com/onsi/ginkgo/ginkgo \
6463
github.com/mitchellh/gox \
6564
github.com/golang/protobuf/protoc-gen-go \
@@ -68,8 +67,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
6867
github.com/dgrijalva/jwt-go/cmd/jwt \
6968
github.com/axw/gocov/gocov \
7069
github.com/AlekSi/gocov-xml \
71-
&& gometalinter --install \
72-
&& gometalinter.v2 --install \
70+
&& curl -fsSLO https://github.com/alecthomas/gometalinter/releases/download/v${GOMETALINTER_VERSION}/gometalinter-${GOMETALINTER_VERSION}-linux-amd64.tar.gz \
71+
&& tar xzvf gometalinter-${GOMETALINTER_VERSION}-linux-amd64.tar.gz --strip-components=1 -C /usr/local/bin \
72+
&& ln -s /usr/local/bin/gometalinter /usr/local/bin/gometalinter.v2 \
73+
&& rm gometalinter-${GOMETALINTER_VERSION}-linux-amd64.tar.gz \
7374
&& pip install --disable-pip-version-check --no-cache-dir azure-cli==${AZCLI_VERSION} shyaml \
7475
&& apt-get purge --auto-remove -y libffi-dev python-dev python-pip
7576

0 commit comments

Comments
 (0)