diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index c6fa9ef..09ea880 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/golangci.yml @@ -18,12 +18,12 @@ jobs: with: go-version-file: go.mod - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.54 + version: v1.61 args: --timeout=10m - + # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/go.mod b/go.mod index 74191c5..64c7a9a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vulsio/go-cpe-dictionary -go 1.20 +go 1.23 require ( github.com/alicebob/miniredis/v2 v2.33.0 diff --git a/util/util.go b/util/util.go index 47f0097..286b27f 100644 --- a/util/util.go +++ b/util/util.go @@ -114,7 +114,7 @@ func FetchFeedFile(url string, compressed bool) ([]byte, error) { } return nil } - notify := func(err error, t time.Duration) { + notify := func(_ error, t time.Duration) { logger.Warn("Failed to HTTP GET", "retrying in", t) } err := backoff.RetryNotify(f, backoff.NewExponentialBackOff(), notify)