From c4a0dc553406e945f8404d6b8bde64299ef86fda Mon Sep 17 00:00:00 2001 From: niusmallnan Date: Tue, 23 Oct 2018 18:03:52 +0800 Subject: [PATCH] Temporary fix build failure The gotools cannot support the current golang version. I temporarily roll back to a suitable version so that it does not affect other developments. --- Dockerfile.dapper | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile.dapper b/Dockerfile.dapper index ffc7cc0b..7be17914 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -145,7 +145,10 @@ RUN curl -pfL ${SELINUX_POLICY_URL} > ${DOWNLOADS}/$(basename ${SELINUX_POLICY_U # Install Go RUN wget -O - https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GOARCH}.tar.gz | tar -xzf - -C /usr/local && \ - go get github.com/rancher/trash && go get golang.org/x/lint/golint + go get github.com/rancher/trash + +RUN mkdir -p ${GOPATH}/src/golang.org/x && cd ${GOPATH}/src/golang.org/x/ && git clone https://github.com/golang/tools && \ + cd tools && git checkout 6adeb8aab2ded9eb693b831d5fd090c10a6ebdfa -b temp && go get golang.org/x/lint/golint # Install Host Docker RUN curl -fL ${!BUILD_DOCKER_URL} > /usr/bin/docker && \