SCHED-2200: Migrate to Go 1.26#2789
Open
theyoprst wants to merge 1 commit into
Open
Conversation
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.
This was referenced Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Go 1.26 has been out since February 2026 and the project is still on 1.25. The k8s 1.36 library stack (next PR in this stack) requires Go 1.26, so the toolchain moves first, separately, to keep runtime behavior changes (new default GC) attributable.
Stacked on #2788: lint runs on
pull_request_targetwith workflow definitions from the default branch, so lint here stays red until #2788 merges to main. Rebase the stack after that merge to re-trigger checks.Solution
go 1.26.0directive,golang:1.26base imagesgomodguard->gomodguard_v2in the linter configgolang.org/x/expbecomes indirect, mockery output picks up go1.26 formattingTesting
go build, full unit suite,make lint,make sync-version-from-scratch UNSTABLE=falsewith no drift.Release Notes
Feature: soperator binaries are built with Go 1.26.