Skip to content

Commit ad3d2d9

Browse files
committed
ci: fix lint VSC permissions error
1 parent 53835f5 commit ad3d2d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ RUN cd /tmp \
1111
&& mkdir -p /tmp/build/.modcache \
1212
&& cd /tmp/tools \
1313
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \
14-
&& chmod -R 777 /tmp/build/
14+
&& chmod -R 777 /tmp/build/ \
15+
&& git config --global --add safe.directory /build
16+
# The last line is needed to ensure that go build is able to gather
17+
# information from the vsc used in the builds to get the commit hash.
1518

1619
WORKDIR /build

0 commit comments

Comments
 (0)