From c2768a0f324d72cf719438e4b00d439e6bf7c6ac Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 12 Jun 2026 11:19:59 +0800 Subject: [PATCH] ci: use go install for golangci-lint instead of curl The curl-based install script downloads from raw.githubusercontent.com which is unreliable in some network environments. go install is more reliable and uses the Go module proxy. --- .gitea/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6aba3a1..705471b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -33,8 +33,7 @@ jobs: fi - name: Install golangci-lint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.0 + run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest - name: Run lint run: golangci-lint run ./...