From 9631a4cd9525217a28d0435ad85e708201d939c9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:39:46 +0000 Subject: [PATCH 1/3] Initial plan From 9f22c4febb9bacf3967908c0bbbe29598a9a3fbd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:44:33 +0000 Subject: [PATCH 2/3] Fix build pipeline: reorder steps and modernize dependencies Co-authored-by: ziflex <1607148+ziflex@users.noreply.github.com> --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aea0e0c..e551a17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,19 +12,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ^1.17 + go-version: ^1.23 id: go - - name: Set up linter - run: go get -u github.com/mgechev/revive - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: Set up linter + run: go install github.com/mgechev/revive@latest - name: Get dependencies - run: go get -v -t -d ./... + run: go mod tidy - name: Lint run: revive -config revive.toml -formatter stylish -exclude ./vendor/... ./... From 1ee1ad2a74635cfa698de739aaaad27b4582b163 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:45:48 +0000 Subject: [PATCH 3/3] Fix revive path in build pipeline Co-authored-by: ziflex <1607148+ziflex@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e551a17..25b3b63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: run: go mod tidy - name: Lint - run: revive -config revive.toml -formatter stylish -exclude ./vendor/... ./... + run: $(go env GOPATH)/bin/revive -config revive.toml -formatter stylish -exclude ./vendor/... ./... - name: Vet run: go vet ./...