[DEVPLAT-6703] Bump go version to v1.26.2#162
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e57c7dd. Configure here.
| logEntry.Infof(msg, args...) | ||
| case kgo.LogLevelDebug: | ||
| logEntry.Debugf(msg) | ||
| logEntry.Debugf(msg, args...) |
There was a problem hiding this comment.
Dead empty args slice masks format string misuse
Low Severity
The args variable is created as an empty slice and never populated, then spread into every Errorf/Warnf/Infof/Debugf call. This is dead code that only serves to silence the Go 1.24+ go vet "non-constant format string with no args" check. Since msg from kgo.Logger.Log is a plain message string (not a format string), the correct approach is logEntry.Errorf("%s", msg) — which both properly silences the diagnostic and prevents % characters in msg from being misinterpreted as format verbs.
Reviewed by Cursor Bugbot for commit e57c7dd. Configure here.
There was a problem hiding this comment.
That is relevant but pretty minor thus we can ignore it


Description
In this PR we are bumping the go version to
v1.26.2.Alongside we also bump some dependencies needed for formatting, linting, and debugging.
Additionally, the
go fix ./...was executed to update the code base to use modern Go syntax style.Checklist
Thoroughly tested the changes indevelopmentand/orstagingREADME.mdas necessaryRelated links
Note
Medium Risk
Medium risk due to a Go toolchain upgrade plus widespread mechanical signature/type tweaks (
interface{}→any) and small concurrency/logging refactors that could cause subtle build or behavior differences across the SDK surface.Overview
Upgrades the SDK toolchain to Go 1.26.2 (Docker build image,
go.mod, and README) and refreshes dev tooling versions (golangci-lint,goimports,dlv).Applies
gofix-style modernizations across the codebase: broadinterface{}→anyupdates in public APIs (logger, transport encode/decode funcs, gRPC interceptors, config helpers), uses standard-library helpers likemaps.Copy,min,fmt.Appendf,strings.SplitSeq,range N, andWaitGroup.Go, and removes a few temporary variables/formatting steps while keeping log messages equivalent.Reviewed by Cursor Bugbot for commit e57c7dd. Bugbot is set up for automated code reviews on this repo. Configure here.