Fix go toolchain versions#6258
Conversation
|
@Mergifyio rebase |
The k8s dependency bump set go.mod to go 1.26.0, but build.env still had Go 1.24.6. Update to Go 1.26.2 (latest 1.26 patch) so the build toolchain matches the module requirement. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Praveen M <m.praveen@ibm.com>
golangci-lint v2.5.0 was built with Go 1.25 and refuses to lint code targeting Go 1.26.0. Update to v2.9.0, the first version with Go 1.26 support. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Praveen M <m.praveen@ibm.com>
BatchCount and len(BatchItem) are int values, not strings. Use %d instead of %q to match the argument type, fixing the govet printf check failure. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Praveen M <m.praveen@ibm.com>
Apply golangci-lint v2.9.0 modernize auto-fixes:
- interface{} replaced with any
- map copy loops replaced with maps.Copy
- contains loops replaced with slices.Contains
- strings.Index replaced with strings.Cut
- if-min/max replaced with min/max builtins
- aws.String/valueToPointer replaced with new()
Add nolint:gosec for G602 false positives in test files
where slice bounds are guaranteed by test setup.
Assisted-by: Claude Code <noreply@anthropic.com>
Signed-off-by: Praveen M <m.praveen@ibm.com>
b9487cc to
010e4a3
Compare
|
Deprecation notice: This pull request comes from a fork and was rebased using |
✅ Branch has been successfully rebased |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/k8s-e2e-external-storage/1.33 |
|
/test ci/centos/k8s-e2e-external-storage/1.34 |
|
/test ci/centos/mini-e2e-helm/k8s-1.33 |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/mini-e2e-helm/k8s-1.34 |
|
/test ci/centos/mini-e2e/k8s-1.33 |
|
/test ci/centos/mini-e2e/k8s-1.34 |
|
/test ci/centos/k8s-e2e-external-storage/1.35 |
|
/test ci/centos/mini-e2e-helm/k8s-1.35 |
|
/test ci/centos/mini-e2e/k8s-1.35 |
|
/retest ci/centos/k8s-e2e-external-storage/1.33 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.33 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.34 |
|
/retest ci/centos/upgrade-tests-cephfs |
|
/retest ci/centos/upgrade-tests-rbd |
|
/retest ci/centos/upgrade-tests-cephfs |
|
/retest ci/centos/mini-e2e-helm/k8s-1.34 |
|
Deprecation notice: This pull request comes from a fork and was queued with |
Merge Queue Status
This pull request spent 12 seconds in the queue, including 2 seconds running CI. Required conditions to merge
|
Describe what this PR does
Checklist:
Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:
/retest ci/centos/<job-name>: retest the<job-name>after unrelatedfailure (please report the failure too!)