From 854071d36357cd920a74362d0e9322960183c2c8 Mon Sep 17 00:00:00 2001 From: tac0turtle Date: Mon, 12 Oct 2026 17:17:41 +0200 Subject: [PATCH] chore: pin mockery and golangci-lint to Go 1.27-compatible versions - Pin mockery to v3.8.1 in `just mock-gen` (was @latest). Older v3.4.0 fails to load packages under Go 1.27 ("package context without types"). - Pin golangci-lint to v2.14.0 in CI (was latest), so lint results don't change underneath PRs when a new release ships. - Remove a redundant loop variable copy in pkg/config/yaml.go flagged by copyloopvar in golangci-lint v2.14.0. --- .github/workflows/lint.yml | 2 +- .just/codegen.just | 2 +- pkg/config/yaml.go | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) 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