From 677f33d0f14d0ab8b3f593570086dd2d85a80b84 Mon Sep 17 00:00:00 2001 From: positiveblue Date: Wed, 4 Jan 2023 14:12:48 -0800 Subject: [PATCH] ci: fix lint VSC permissions error --- tools/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/Dockerfile b/tools/Dockerfile index 5a2eab524..bb2c52d53 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -11,6 +11,9 @@ RUN cd /tmp \ && mkdir -p /tmp/build/.modcache \ && cd /tmp/tools \ && go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \ - && chmod -R 777 /tmp/build/ + && chmod -R 777 /tmp/build/ \ + && git config --global --add safe.directory /build + # The last line is needed to ensure that go build is able to gather + # information from the vsc used in the builds to get the commit hash. WORKDIR /build