Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SCHED-2200: Bump golangci-lint to v2.12.2#2783

Closed
theyoprst wants to merge 2 commits into
mainnebius/soperator:mainfrom
SCHED-2200/0nebius/soperator:SCHED-2200/0Copy head branch name to clipboard
Closed

SCHED-2200: Bump golangci-lint to v2.12.2#2783
theyoprst wants to merge 2 commits into
mainnebius/soperator:mainfrom
SCHED-2200/0nebius/soperator:SCHED-2200/0Copy head branch name to clipboard

Conversation

@theyoprst

@theyoprst theyoprst commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Problem

The Go 1.26 migration (#2784) cannot pass lint while main pins golangci-lint v2.5.0: the lint job runs on pull_request_target, so the workflow definition comes from the PR base branch, and v2.5.0 is built with go1.25 and refuses go 1.26 modules.

Solution

  • bump golangci-lint to v2.12.2 in the workflow and Makefile while the module still targets Go 1.25; both linter versions pass on this branch
  • fix govet inline-analyzer findings v2.12.2 reports: reflect.Ptr -> reflect.Pointer, constraints.Ordered -> cmp.Ordered, x/exp/slices -> stdlib slices

#2784 is stacked on this branch, so its lint runs with v2.12.2.

Testing

Linted with v2.5.0 (what this PR's own CI runs) and v2.12.2 (what main runs after merge): 0 issues both. Unit suite green.

Release Notes

None

@theyoprst theyoprst added the go Pull requests that update Go code label Jul 24, 2026
The lint job runs via pull_request_target, so the workflow definition comes from the base branch. Bumping the pin while the module still targets Go 1.25 lets the Go 1.26 migration PR lint with a linter that supports it. Fix govet inline-analyzer findings the new version reports: reflect.Ptr -> reflect.Pointer, constraints.Ordered -> cmp.Ordered, x/exp/slices -> stdlib slices.
Bump the go directive to 1.26.0 and golang base images to 1.26. Switch gomodguard to gomodguard_v2 in the linter config. golang.org/x/exp becomes an indirect dependency and mockery output picks up go1.26 formatting.
@theyoprst
theyoprst force-pushed the SCHED-2200/0 branch 2 times, most recently from b4c12cf to 0ccefca Compare July 24, 2026 15:56
@theyoprst theyoprst changed the title SCHED-2200: Migrate to Go 1.26 SCHED-2200: Bump golangci-lint to v2.12.2 Jul 24, 2026
@theyoprst theyoprst added the ignore-for-release Don't include this PR into changelog label Jul 24, 2026
@theyoprst

Copy link
Copy Markdown
Collaborator Author

Replaced by a re-stacked PR: GitHub's stack feature does not allow changing the base branch, and this PR needs to sit on top of #2788 (golangci-lint bump) rather than main. Same branch, same content; see the new PR.

@theyoprst theyoprst closed this Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code ignore-for-release Don't include this PR into changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.