Skip to content

build: Update dependency golangci/golangci-lint to v2.12.2 - #64

Merged
pjbgf merged 2 commits into
mainfrom
renovate/tooling
Jul 24, 2026
Merged

build: Update dependency golangci/golangci-lint to v2.12.2#64
pjbgf merged 2 commits into
mainfrom
renovate/tooling

Conversation

@go-git-renovate

@go-git-renovate go-git-renovate Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Update Change
golangci/golangci-lint minor v2.11.4v2.12.2

Release Notes

golangci/golangci-lint (golangci/golangci-lint)

v2.12.2

比较 Source

Released on 2026-05-06

  1. Linters bug fixes
    • gomodguard_v2: fix blocked configuration
    • gomodguard_v2: from 2.1.0 to 2.1.3
    • iface: from 1.4.1 to 1.4.2

v2.12.1

比较 Source

Released on 2026-05-01

  1. Linters bug fixes
    • gomodguard_v2: fix panic with migration suggestion
  2. Misc.
    • fix install.sh script (if you are still using an URL based on the branch master, please update to use https://golangci-lint.run/install.sh)

v2.12.0

比较 Source

Released on 2026-05-01

  1. 新建 linters
  2. Linters new features or changes
    • dupl: from f665c8d to c99c5cf (extended detection)
    • funcorder: from 0.5.0 to 0.6.0 (new option: function)
    • goconst: add an option to ignore strings from tests
    • goconst: from 1.8.2 to 1.10.0 (extended detection)
    • gomodguard_v2: from 1.4.1 to 2.1.0 (major version with new configuration)
    • gosec: from 619ce21 to 2.26.1 (new checks: G124, G708, G709, G710)
    • govet: add inline analyzer
    • makezero: from 2.1.0 to 2.2.1 (support slice type aliases)
    • paralleltest: expose checkcleanup option
    • sloglint: from 0.11.1 to 0.12.0 (new options: allowed-keys, custom-funcs)
    • wsl_v5: from 5.6.0 to 5.8.0 (new option: cuddle-max-statements; new checks: after-decl, after-defer, after-expr, after-go, cuddle-group)
  3. Linters bug fixes
    • forbidigo: from 2.3.0 to 2.3.1
    • godot: from 1.5.4 to 1.5.6
    • govet-modernize: from 0.43.0 to 0.44.0
    • ireturn: from 0.4.0 to 0.4.1
    • rowserrcheck: from 1.1.1 to c5f79b8
  4. Misc.
    • Decrease cache entropy
    • Embed the JSON schema in the binary
    • Filter env vars when cloning the repository with the custom command

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@go-git-renovate
go-git-renovate Bot force-pushed the renovate/tooling branch from 5209f22 to 641a615 比较 June 6, 2026 07:45
@go-git-renovate go-git-renovate Bot changed the title build: Update dependency golangci/golangci-lint to v2.12.1 build: Update dependency golangci/golangci-lint to v2.12.2 Jun 6, 2026
Signed-off-by: go-git-renovate[bot] <245267575+go-git-renovate[bot]@users.noreply.github.com>
@pjbgf

pjbgf commented Jul 24, 2026

Copy link
Copy Markdown
Member

@copilot fix the make validate errors.

Copilot AI commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@copilot fix the make validate errors.

Fixed in commit fix: resolve goconst lint errors and deprecate gomodguard linter.

The new v2.12.2 linter flagged 9 goconst issues (repeated string literals that should be constants) and a deprecation warning for gomodguard. Changes:

  • Extracted repeated path strings in checkout_pathspec_test.go into named constants
  • Added gitConfigTrue = "true" constant in indexversion.go and used it across indexversion_test.go and config_test.go
  • Added warnEnvVersionInvalid constant in indexversion_test.go and used it in both indexversion_test.go and add_test.go
  • Disabled the deprecated gomodguard linter in .golangci.yaml (it's replaced by gomodguard_v2 which is already enabled via default: all)

make validate now passes with 0 lint issues.

Copilot finished work on behalf of pjbgf July 24, 2026 09:17
@pjbgf
pjbgf merged commit 30b28df into main Jul 24, 2026
7 checks passed
@pjbgf
pjbgf deleted the renovate/tooling branch July 24, 2026 09:19
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

项目

None yet

Development

Successfully merging this pull request may close these issues.

2 participants