From 3f497dd82aefaf85ed77da7c846e5bba840f51f8 Mon Sep 17 00:00:00 2001 From: Alessandro Puccetti Date: Fri, 17 Feb 2017 16:29:28 +0100 Subject: [PATCH] backend: fix permissions and add hclfmt After updating build-tools, I got new errors: > ./tools/lint: line 134: hclfmt: command not found > go install net: open /usr/local/go/pkg/linux_amd64_race/net.a: > permission denied This patch works around that by doing the same thing as: https://github.com/weaveworks/build-tools/pull/44/files --- backend/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index 777cbc99d..128366fcb 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -10,8 +10,10 @@ RUN go get -tags netgo \ github.com/golang/lint/golint \ github.com/kisielk/errcheck \ gopkg.in/mvdan/sh.v1/cmd/shfmt \ + github.com/fatih/hclfmt \ github.com/mjibson/esc \ github.com/client9/misspell/cmd/misspell && \ + chmod a+wr --recursive /usr/local/go/pkg && \ rm -rf /go/pkg/ /go/src/ COPY build.sh / ENTRYPOINT ["/build.sh"]