File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION -X
13
13
FROM golang:1.21
14
14
# related to https://github.com/golangci/golangci-lint/issues/3107
15
15
ENV GOROOT /usr/local/go
16
- # Set /app as safe
17
- RUN git config --global --add safe.directory /app
16
+ # Set all directories as safe
17
+ RUN git config --global --add safe.directory '*'
18
18
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
19
19
COPY --from=builder /golangci/golangci-lint /usr/bin/
20
20
CMD ["golangci-lint" ]
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ ENV GOROOT /usr/local/go
22
22
# git and mercurial are needed most times for go get`, etc.
23
23
# See https://github.com/docker-library/golang/issues/80
24
24
RUN apk --no-cache add gcc musl-dev git mercurial
25
- # Set /app as safe
26
- RUN git config --global --add safe.directory /app
25
+ # Set all directories as safe
26
+ RUN git config --global --add safe.directory '*'
27
27
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
28
28
COPY --from=builder /golangci/golangci-lint /usr/bin/
29
29
CMD ["golangci-lint" ]
You can’t perform that action at this time.
0 commit comments