We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562d45c commit 471080dCopy full SHA for 471080d
Dockerfile
@@ -17,7 +17,9 @@ RUN CGO_ENABLED=1 go build -trimpath -ldflags "-s -w" -buildmode=plugin -o wrap-
17
FROM golang:1.21
18
# related to https://github.com/golangci/golangci-lint/issues/3107
19
ENV GOROOT /usr/local/go
20
-# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
+# Set all directories as safe
21
+RUN git config --global --add safe.directory '*'
22
+
23
COPY --from=builder /golangci/golangci-lint /usr/bin/
24
COPY --from=builder /golangci/wrap-err-checker.so /usr/bin/
25
CMD ["golangci-lint"]
0 commit comments