podman icon indicating copy to clipboard operation
podman copied to clipboard

chore(deps): update dependency golangci/golangci-lint to v2

Open renovate[bot] opened this issue 9 months ago โ€ข 3 comments

This PR contains the following updates:

Package Update Change
golangci/golangci-lint major 1.64.4 -> 2.0.1

Release Notes

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

v2.0.1

Compare Source

  1. Linters/formatters bug fixes
    • golines: fix settings during linter load
  2. Misc.
    • Validates the version field before the configuration
    • forbidigo: fix migration

v2.0.0

Compare Source

  1. Enhancements
    • ๐ŸŒŸ New golangci-lint fmt command with dedicated formatter configuration (https://golangci-lint.run/welcome/quick-start/#formatting)
    • โ™ป๏ธ New golangci-lint migrate command to help migration from v1 to v2 (cf. Migration guide)
    • โš ๏ธ New default values (cf. Migration guide)
    • โš ๏ธ No exclusions by default (cf. Migration guide)
    • โš ๏ธ New default sort order (cf. Migration guide)
    • ๐ŸŒŸ New option run.relative-path-mode (cf. Migration guide)
    • ๐ŸŒŸ New linters configuration (cf. Migration guide)
    • ๐ŸŒŸ New output format configuration (cf. Migration guide)
    • ๐ŸŒŸ New --fast-only flag (cf. Migration guide)
    • ๐ŸŒŸ New option linters.exclusions.warn-unused to log a warning if an exclusion rule is unused.
  2. New linters/formatters
    • Add golines formatter https://github.com/segmentio/golines
  3. Linters new features
    • โš ๏ธ Merge staticcheck, stylecheck, gosimple into one linter (staticcheck) (cf. Migration guide)
    • go-critic: from 0.12.0 to 0.13.0
    • gomodguard: from 1.3.5 to 1.4.1 (block explicit indirect dependencies)
    • nilnil: from 1.0.1 to 1.1.0 (new option: only-two)
    • perfsprint: from 0.8.2 to 0.9.1 (checker name in the diagnostic message)
    • staticcheck: new quickfix set of rules
    • testifylint: from 1.5.2 to 1.6.0 (new options: equal-values, suite-method-signature, require-string-msg)
    • wsl: from 4.5.0 to 4.6.0 (new option: allow-cuddle-used-in-block)
  4. Linters bug fixes
    • bidichk: from 0.3.2 to 0.3.3
    • errchkjson: from 0.4.0 to 0.4.1
    • errname: from 1.0.0 to 1.1.0
    • funlen: fix ignore-comments option
    • gci: from 0.13.5 to 0.13.6
    • gosmopolitan: from 1.2.2 to 1.3.0
    • inamedparam: from 0.1.3 to 0.2.0
    • intrange: from 0.3.0 to 0.3.1
    • protogetter: from 0.3.9 to 0.3.12
    • unparam: from 8a5130c to 0df0534
  5. Misc.
    • ๐Ÿงน Configuration options renaming (cf. Migration guide)
    • ๐Ÿงน Remove options (cf. Migration guide)
    • ๐Ÿงน Remove flags (cf. Migration guide)
    • ๐Ÿงน Remove alternative names (cf. Migration guide)
    • ๐Ÿงน Remove or replace deprecated elements (cf. Migration guide)
    • Adds an option to display some commands as JSON:
      • golangci-lint config path --json
      • golangci-lint help linters --json
      • golangci-lint help formatters --json
      • golangci-lint linters --json
      • golangci-lint formatters --json
      • golangci-lint version --json
  6. Documentation

v1.64.8

Compare Source

  • Detects use of configuration files from golangci-lint v2

v1.64.7

Compare Source

  1. Linters bug fixes
    • depguard: from 2.2.0 to 2.2.1
    • dupl: from 3e9179a to f665c8d
    • gosec: from 2.22.1 to 2.22.2
    • staticcheck: from 0.6.0 to 0.6.1
  2. Documentation
    • Add GitLab documentation

v1.64.6

Compare Source

  1. Linters bug fixes
    • asciicheck: from 0.4.0 to 0.4.1
    • contextcheck: from 1.1.5 to 1.1.6
    • errcheck: from 1.8.0 to 1.9.0
    • exptostd: from 0.4.1 to 0.4.2
    • ginkgolinter: from 0.19.0 to 0.19.1
    • go-exhaustruct: from 3.3.0 to 3.3.1
    • gocheckcompilerdirectives: from 1.2.1 to 1.3.0
    • godot: from 1.4.20 to 1.5.0
    • perfsprint: from 0.8.1 to 0.8.2
    • revive: from 1.6.1 to 1.7.0
    • tagalign: from 1.4.1 to 1.4.2

v1.64.5

Compare Source

  1. Bug fixes
    • Add missing flag new-from-merge-base-flag
  2. Linters bug fixes
    • asciicheck: from 0.3.0 to 0.4.0
    • forcetypeassert: from 0.1.0 to 0.2.0
    • gosec: from 2.22.0 to 2.22.1

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: Never, 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 was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar Mar 25 '25 08:03 renovate[bot]

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: renovate[bot] Once this PR has been reviewed and has the lgtm label, please assign rhatdan for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Mar 25 '25 08:03 openshift-ci[bot]

v2 was released only yesterday and seems to have breaking changes.

lsm5 avatar Mar 25 '25 12:03 lsm5

This won't work as is, needs a new config and some fixes. I will open a PR soon.

This PR needs to be closed.

kolyshkin avatar Mar 27 '25 18:03 kolyshkin