Skip to content

feat: Updates go to 1.24.9#26918

Merged
devanbenz merged 7 commits intomaster-1.xfrom
db/update-go-1.25.3
Oct 29, 2025
Merged

feat: Updates go to 1.24.9#26918
devanbenz merged 7 commits intomaster-1.xfrom
db/update-go-1.25.3

Conversation

@devanbenz
Copy link
Copy Markdown

@devanbenz devanbenz commented Oct 20, 2025

During the upgrade there was a change to string format analysis https://go.dev/doc/go1.24#vet requiring changes to any format strings that did not meet the new vet requirements.

During the upgrade there was a change to string format analysis
https://go.dev/doc/go1.24#vet requiring changes to any format strings.
@devanbenz devanbenz requested a review from jdstrand October 20, 2025 18:13
@devanbenz devanbenz marked this pull request as draft October 20, 2025 18:39
Add '.' argument to stringer directives to properly specify package context.
This fixes 'internal error: package without types' errors with stringer
in Go 1.24+.

Files modified:
- cmd/influx_tools/internal/format/binary/common.go
- models/gen.go
- pkg/data/gen/gen.go

Also regenerates string files with updated stringer version.
Updates golang.org/x/tools and related dependencies to versions compatible
with Go 1.24+. This is required for stringer to work correctly with the
new Go version.
@devanbenz devanbenz changed the title feat: Updates go to 1.25.3 feat: Updates go to 1.24.9 Oct 20, 2025
@devanbenz devanbenz marked this pull request as ready for review October 20, 2025 20:09
davidby-influx
davidby-influx previously approved these changes Oct 20, 2025
Copy link
Copy Markdown
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@jdstrand jdstrand left a comment

Choose a reason for hiding this comment

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

One question in-line regarding correctness.

return "MessageType(" + strconv.FormatInt(int64(i+1), 10) + ")"
idx := int(i) - 1
if i < 1 || idx >= len(_MessageType_index)-1 {
return "MessageType(" + strconv.FormatInt(int64(i), 10) + ")"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This doesn't look look the same, am I missing something? Why are we now returning int64(i) here instead of int64(i+1)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This code is auto-generated by stringer, it must have changed slightly with the newer version of go. 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you deem it correct, then +1 from me

@jdstrand jdstrand mentioned this pull request Oct 21, 2025
1 task
updates formatter variants to use non-format var
@philjb philjb added the 1.x label Oct 22, 2025
Copy link
Copy Markdown
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

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

LGTM. I was initially confused by moving from fmt.Fprintf(string) to fmt.Fprintf("%s", string) to fmt.Fprint(string) but I finally got it.

@devanbenz devanbenz merged commit f60c5c4 into master-1.x Oct 29, 2025
9 checks passed
@devanbenz devanbenz deleted the db/update-go-1.25.3 branch October 29, 2025 20:45
devanbenz added a commit that referenced this pull request Oct 31, 2025
(cherry picked from commit f60c5c4)
devanbenz added a commit that referenced this pull request Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants