From 2b1fa2216a647fcb7aa4212fe457e2950be0d76d Mon Sep 17 00:00:00 2001 From: Antoine Rose Date: Tue, 10 Aug 2021 11:11:31 +0200 Subject: [PATCH] [docker] fix the build by upgrading to Go 1.16.7 --- autolib/docker.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/autolib/docker.sh b/autolib/docker.sh index 7f78d83..1cb1691 100644 --- a/autolib/docker.sh +++ b/autolib/docker.sh @@ -20,15 +20,15 @@ RUN set -x && \ curl -sL https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz | tar xzf - -C /opt && \ cp /opt/cmake-3.14.5-Linux-x86_64/bin/* /usr/local/bin/ && \ cp -R /opt/cmake-3.14.5-Linux-x86_64/share/cmake-3.14 /usr/local/share/ && \ - curl -sL https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz 2> /dev/null | tar xzf - -C /usr/local && \ + curl -sL https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz 2> /dev/null | tar xzf - -C /usr/local && \ mkdir -p /gopath/{src,bin} && \ printf 'export GOPATH=/gopath\nexport PATH=$PATH:/usr/local/go/bin:/gopath/bin\n' > /root/.bash_profile && \ printf '#!/usr/bin/env bash\nsource /root/.bash_profile\nexec /bin/bash $@\n' > /entrypoint && \ chmod +x /entrypoint && \ GOPATH=/gopath /usr/local/go/bin/go get github.com/prometheus/prom2json && \ - GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json && \ + GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json@latest && \ GOPATH=/gopath /usr/local/go/bin/go get github.com/git-chglog/git-chglog && \ - GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog && \ + GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest && \ rm -rf /var/lib/apt/lists/* WORKDIR /code @@ -50,15 +50,15 @@ RUN set -x && \ curl -sL https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz | tar xzf - -C /opt && \ cp /opt/cmake-3.14.5-Linux-x86_64/bin/* /usr/local/bin/ && \ cp -R /opt/cmake-3.14.5-Linux-x86_64/share/cmake-3.14 /usr/local/share/ && \ - curl -sL https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz 2> /dev/null | tar xzf - -C /usr/local && \ + curl -sL https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz 2> /dev/null | tar xzf - -C /usr/local && \ mkdir -p /gopath/{src,bin} && \ printf 'export GOPATH=/gopath\nexport PATH=$PATH:/usr/local/go/bin:/gopath/bin\n' > /root/.bash_profile && \ printf '#!/usr/bin/env bash\nsource /root/.bash_profile\nexec /bin/bash $@\n' > /entrypoint && \ chmod +x /entrypoint && \ GOPATH=/gopath /usr/local/go/bin/go get github.com/prometheus/prom2json && \ - GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json && \ + GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json@latest && \ GOPATH=/gopath /usr/local/go/bin/go get github.com/git-chglog/git-chglog && \ - GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog && \ + GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest && \ rm -rf /var/lib/apt/lists/* WORKDIR /code @@ -80,15 +80,15 @@ RUN set -x && \ curl -sL https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz | tar xzf - -C /opt && \ cp /opt/cmake-3.14.5-Linux-x86_64/bin/* /usr/local/bin/ && \ cp -R /opt/cmake-3.14.5-Linux-x86_64/share/cmake-3.14 /usr/local/share/ && \ - curl -sL https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz 2> /dev/null | tar xzf - -C /usr/local && \ + curl -sL https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz 2> /dev/null | tar xzf - -C /usr/local && \ mkdir -p /gopath/{src,bin} && \ printf 'export GOPATH=/gopath\nexport PATH=$PATH:/usr/local/go/bin:/gopath/bin\n' > /root/.bash_profile && \ printf '#!/usr/bin/env bash\nsource /root/.bash_profile\nexec /bin/bash $@\n' > /entrypoint && \ chmod +x /entrypoint && \ GOPATH=/gopath /usr/local/go/bin/go get github.com/prometheus/prom2json && \ - GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json && \ + GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json@latest && \ GOPATH=/gopath /usr/local/go/bin/go get github.com/git-chglog/git-chglog && \ - GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog && \ + GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest && \ rm -rf /var/lib/apt/lists/* WORKDIR /code