diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 84467fc6d8..fc23ce979b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,7 +29,7 @@ jobs: go.sum - uses: golangci/golangci-lint-action@v9.3.0 with: - version: latest + version: v2.14.0 args: --timeout 10m ./... github-token: ${{ secrets.github_token }} if: env.GIT_DIFF diff --git a/.just/codegen.just b/.just/codegen.just index a1bb03ac20..c96a73ae80 100644 --- a/.just/codegen.just +++ b/.just/codegen.just @@ -2,7 +2,7 @@ [group('codegen')] mock-gen: @echo "-> Generating mocks" - go run github.com/vektra/mockery/v3@latest + go run github.com/vektra/mockery/v3@v3.8.1 # Install dependencies and tidy all modules [group('codegen')] diff --git a/pkg/config/yaml.go b/pkg/config/yaml.go index 3eea0063f4..fe5a8e0b08 100644 --- a/pkg/config/yaml.go +++ b/pkg/config/yaml.go @@ -50,8 +50,6 @@ func (c *Config) SaveAsYaml() error { var processFields func(t reflect.Type, prefix string) processFields = func(t reflect.Type, prefix string) { for field := range t.Fields() { - field := field - // Skip unexported fields if !field.IsExported() { continue