From d9d7f7880dcfc262084c4c0da270a920c913cb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 23 Sep 2025 16:33:42 +0800 Subject: [PATCH] Pin gofumpt and golangci-lint versions As we don't want to remove naked returns --- .github/workflows/lint.yml | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0a8cbd1ae..214b684d9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,7 +32,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v8 with: - version: latest + version: v2.4.0 args: --timeout=30m install-mode: binary verify: false diff --git a/Makefile b/Makefile index a98faeac4..0f78baafe 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ fmt: @gci write --custom-order -s standard -s "prefix(github.com/sagernet/)" -s "default" . fmt_install: - go install -v mvdan.cc/gofumpt@latest + go install -v mvdan.cc/gofumpt@v0.8.0 go install -v github.com/daixiang0/gci@latest lint: @@ -49,7 +49,7 @@ lint: GOOS=freebsd golangci-lint run ./... lint_install: - go install -v github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest + go install -v github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.4.0 proto: @go run ./cmd/internal/protogen