tools: use new golang 1.24 tool directive

This commit is contained in:
ziggie authored and yyforyongyu committed 2025-11-12 22:54:01 +08:00
1 parent 04917644ff
commit f9dccd3e20
4 files changed
+15 -30

No files matched your search

+1 -2
View File
@@ -10,8 +10,7 @@ RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& CGO_ENABLED=0 go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& CGO_ENABLED=0 golangci-lint custom \
&& CGO_ENABLED=0 go tool github.com/golangci/golangci-lint/cmd/golangci-lint custom \
&& mv ./custom-gcl /usr/local/bin/custom-gcl \
&& chmod -R 777 /tmp/build/ \
&& git config --global --add safe.directory /build