From 88cd59856e3c54c25f6f5729a6671aae651ab8a6 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Wed, 3 Dec 2025 16:48:28 +0100 Subject: [PATCH] Fix CI workflow: checkout before setup-go for proper caching Move checkout step before setup-go to allow Go module caching. setup-go needs go.mod/go.sum files to generate cache keys. Also update actions to latest versions and fix golangci-lint warning. --- .github/workflows/ci.yml | 12 ++++++------ stringutils.go | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fad2c9..60176ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: set up go 1.23 - uses: actions/setup-go@v4 + - name: checkout + uses: actions/checkout@v4 + + - name: set up go + uses: actions/setup-go@v5 with: go-version: "1.23" id: go - - name: checkout - uses: actions/checkout@v3 - - name: build and test run: | go get -v @@ -33,7 +33,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v7 with: - version: v2.3.1 + version: v2.6 skip-pkg-cache: true - name: install goveralls diff --git a/stringutils.go b/stringutils.go index 865a8b2..b4aa4cd 100644 --- a/stringutils.go +++ b/stringutils.go @@ -49,6 +49,7 @@ func DeDup(keys []string) []string { } // DeDupBig remove duplicates from slice. +// // Deprecated: Use DeDup instead. This function now just calls DeDup for backwards compatibility. func DeDupBig(keys []string) []string { return DeDup(keys)