Skip to content

Upgrade Go to 1.26#7795

Merged
antoninbas merged 1 commit intoantrea-io:mainfrom
antoninbas:upgrade-go-to-1.26
Mar 2, 2026
Merged

Upgrade Go to 1.26#7795
antoninbas merged 1 commit intoantrea-io:mainfrom
antoninbas:upgrade-go-to-1.26

Conversation

@antoninbas
Copy link
Contributor

  • Update golangci-lint to the latest availble version (v2.10.1)
  • Build and push a new codegen image with tag kubernetes-1.35.0-build.0

Some "false positives" needed to be handled after the golangci-lint update.
No changes to the Go source code.

* Update golangci-lint to the latest availble version (v2.10.1)
* Build and push a new codegen image with tag kubernetes-1.35.0-build.0

Some "false positives" needed to be handled after the golangci-lint
update.
No changes to the Go source code.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
Copilot AI review requested due to automatic review settings February 19, 2026 22:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the Go toolchain from version 1.25 to 1.26 and updates the golangci-lint version from v2.5.0 to v2.10.1. The upgrade requires building a new codegen Docker image with updated Go version and handling several gosec linter warnings that surfaced with the newer linter version.

Changes:

  • Upgraded Go version from 1.25 to 1.26 in go.mod and build dependencies
  • Updated golangci-lint from v2.5.0 to v2.10.1 with configuration changes to suppress G117 false positives
  • Built and tagged new codegen image as kubernetes-1.35.0-build.0 with updated Go version

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
go.mod Updated Go version directive from 1.25.0 to 1.26.0
build/images/deps/go-version Updated Go version from 1.25 to 1.26 for Docker builds
Makefile Updated golangci-lint version from v2.5.0 to v2.10.1
.golangci.yml Added exclusion rule for G117 gosec warnings (serialization of secrets - known false positives)
hack/update-codegen.sh Updated codegen Docker image tag to kubernetes-1.35.0-build.0
multicluster/hack/update-codegen.sh Updated codegen Docker image tag to kubernetes-1.35.0-build.0
build/images/codegen/README.md Documented the new codegen image tag with Go v1.26 upgrade note
test/e2e/prometheus_test.go Added #nosec G704 comment to suppress false positive for unhandled error audit
pkg/log/log_file.go Added #nosec G703 comment explaining admin-provided path with no privilege boundary
pkg/flowaggregator/clickhouseclient/clickhouseclient_test.go Added #nosec G101 comment for test credentials
pkg/controller/supportbundlecollection/validate_test.go Added #nosec G101 comment for test credentials
pkg/controller/supportbundlecollection/controller_test.go Added #nosec G101 comment for test credentials
pkg/apiserver/registry/controlplane/supportbundlecollection/rest_test.go Added #nosec G101 comments for test credentials (3 instances)
pkg/antctl/runtime/runtime.go Added #nosec G703 comment explaining user-provided path with no privilege boundary

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@antoninbas
Copy link
Contributor Author

/test-all

@antoninbas antoninbas merged commit eed316f into antrea-io:main Mar 2, 2026
76 of 78 checks passed
@antoninbas antoninbas deleted the upgrade-go-to-1.26 branch March 2, 2026 23:38
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.

4 participants