From 6b21591d65e4db3625a72f47405fed480e61cc14 Mon Sep 17 00:00:00 2001 From: mingfu Date: Tue, 2 Sep 2025 09:46:14 +0800 Subject: [PATCH] chore: update Go workflow to use go.mod for versioning and disable caching - Changed the Go version setup to read from go.mod instead of a matrix variable. - Disabled caching for the Go setup to ensure a clean build environment. Signed-off-by: mingfu --- .github/workflows/go.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a296f5123..841de35b3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -55,7 +55,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go }} + go-version-file: go.mod + cache: false - name: Build run: go build -v ./... @@ -70,9 +71,10 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.18 - - uses: actions/checkout@v4 + go-version-file: go.mod + cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v4