From 7be1f2342b25b1a8e851b799d6a49f108ae76660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 1 Oct 2025 00:30:24 +0800 Subject: [PATCH] fix: make lint&ci happy --- .github/workflows/pull.yml | 2 +- .github/workflows/push.yml | 2 +- .golangci.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 9ef824c4..41436865 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Go uses: actions/setup-go@master with: - go-version: '1.25' + go-version: '1.24' - name: Check out code into the Go module directory uses: actions/checkout@v4 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a9438964..a635aa39 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -8,7 +8,7 @@ jobs: - name: Set up Go uses: actions/setup-go@master with: - go-version: '1.25' + go-version: '1.24' - name: Check out code into the Go module directory uses: actions/checkout@master diff --git a/.golangci.yml b/.golangci.yml index 89dd0f2c..6a1cb250 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -64,12 +64,12 @@ output: - format: "colored-line-number" print-issued-lines: true print-linter-name: true - uniq-by-line: true issues: # Fix found issues (if it's supported by the linter) fix: true exclude-use-default: false + uniq-by-line: true exclude: - "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check" - 'identifier ".*" contain non-ASCII character: U\+.*'