diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ff9713c..8fc3c79 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,7 +11,7 @@ jobs: steps: - name: checkout uses: actions/checkout@v7 - - uses: perses/github-actions@v0.12.0 + - uses: perses/github-actions@v0.13.0 - uses: ./.github/perses-ci/actions/setup_environment with: enable_go: true @@ -21,14 +21,14 @@ jobs: uses: golangci/golangci-lint-action@v9.3.0 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v2.10.1 + version: v2.13.2 test: name: test runs-on: ubuntu-latest steps: - name: checkout uses: actions/checkout@v7 - - uses: perses/github-actions@v0.12.0 + - uses: perses/github-actions@v0.13.0 - uses: ./.github/perses-ci/actions/setup_environment with: enable_go: true @@ -40,7 +40,7 @@ jobs: steps: - name: checkout uses: actions/checkout@v7 - - uses: perses/github-actions@v0.12.0 + - uses: perses/github-actions@v0.13.0 - uses: ./.github/perses-ci/actions/setup_environment with: enable_go: true diff --git a/config/resolver.go b/config/resolver.go index 97b140b..ebc230c 100644 --- a/config/resolver.go +++ b/config/resolver.go @@ -103,7 +103,7 @@ func checkPointer(ptr reflect.Value) error { func verifyRec(conf reflect.Value) error { v := conf - if conf.Kind() != reflect.Ptr { + if conf.Kind() != reflect.Pointer { // that means it's not a pointer, so we have to create one to be able to then know if it implements the interface Validator ptr := reflect.New(v.Type()) ptr.Elem().Set(v) diff --git a/go.mod b/go.mod index 91cfe25..5b8a6e1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/perses/common -go 1.26.0 +go 1.27.1 require ( github.com/flc1125/go-cron/v4 v4.12.0