From 189e17d4391b0d954d540076f706e574114936b6 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Thu, 7 May 2026 02:18:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20golangci-lint=20=E6=94=B9=E7=94=A8=20go?= =?UTF-8?q?=20install=20=E5=AE=89=E8=A3=85=EF=BC=8C=E7=BB=95=E8=BF=87?= =?UTF-8?q?=E4=B8=8A=E6=B8=B8=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC=20checks?= =?UTF-8?q?um=20=E6=A0=A1=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 3e36efd..f78b56c 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -55,8 +55,8 @@ jobs: - name: 运行 golangci-lint run: | - # 下载 golangci-lint v2 - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.12.1 + # 安装 golangci-lint v2 + go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.1 # 运行检查并灵活处理结果 set +e