operator,storage-operator: pin Go toolchain to 1.24.13 to fix CI lint failures #4780
+2
−0
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.
Add explicit 'toolchain go1.24.13' directive to both operator and
storage-operator go.mod files to prevent Go's automatic toolchain
selection from choosing incompatible versions.
Problem:
After Go 1.26.0 release (Feb 10, 2026), Go's toolchain selection
algorithm started automatically choosing Go 1.25.7 instead of 1.24.13.
Go 1.25.7 is incompatible with golang.org/x/tools v0.20.0, causing
all CI lint jobs to fail with:
invalid array length -delta * delta (constant -256 of type int64)
This affects ALL branches based on development/131.0.
Root cause:
Go's algorithm prefers 'latest patch before most recent version'.
Before Feb 10: [1.24.13, 1.25.7] → chooses 1.24.13 (before 1.25)
After Feb 10: [1.24.13, 1.25.7, 1.26.0] → chooses 1.25.7 (before 1.26)
Solution:
Pin toolchain to go1.24.13 (latest Go 1.24 patch) to ensure:
The directive is placed immediately after 'go' line as per Go
best practices: https://go.dev/doc/toolchain
Files modified:
This is a minimal fix to unblock CI. A proper Go 1.26 bump will be
done in a separate ticket with full dependency updates.
References:
Fixes: MK8S-131