Skip to content

ci: bump golangci-lint to v2.14 - #1325

Merged
AkihiroSuda merged 1 commit into
opencontainers:mainfrom
kolyshkin:golangci-2.14
Oct 12, 2026
Merged

AkihiroSuda merged 1 commit into
opencontainers:mainfrom
kolyshkin:golangci-2.14

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

The stable Go is now 1.27, and golangci-lint v2.10 (built with go1.26) refuses to work with it:

Error: can't load config: the Go language version (go1.26) used to build golangci-lint is lower than the targeted Go version (1.27.2)

Bump to v2.14, which is built with go1.27 and supports it.

Reported by @thaJeztah in #1324 (comment).

The stable Go is now 1.27, and golangci-lint v2.10 (built with go1.26)
refuses to work with it:

  Error: can't load config: the Go language version (go1.26) used to
  build golangci-lint is lower than the targeted Go version (1.27.2)

Bump to v2.14, which is built with go1.27 and supports it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin

Copy link
Copy Markdown
Contributor Author

This is a band-aid, caused by missing go.mod in the repo. CI has to create a new go.mod and it gets go version from the CI matrix (which is wrong), and so golangci-lint fails.

There were a few proposals about adding go.mod and they all failed in one way or another. I'm preparing one more.

@kolyshkin

Copy link
Copy Markdown
Contributor Author

This is a band-aid, caused by missing go.mod in the repo. CI has to create a new go.mod and it gets go version from the CI matrix (which is wrong), and so golangci-lint fails.

There were a few proposals about adding go.mod and they all failed in one way or another. I'm preparing one more.

OK it looks like golangci-lint bump is still needed (see #1326).

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda AkihiroSuda added this to the v1.3.1 milestone Oct 12, 2026
@AkihiroSuda
AkihiroSuda merged commit b1ac3aa into opencontainers:main Oct 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants