-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix go vet errors with Go 1.24 #41076
Conversation
The cmd/vet in Go 1.24 reports printf calls with non-const format and no args, causing failures. ``` $ go install golang.org/dl/gotip@latest $ gotip download $ gotip vet ./... ```
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heartbeat changes LGTM
heartbeat/monitors/wrappers/summarizer/summarizertesthelper/testhelper.go
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for answering my questions, looks good to me.
@elastic/obs-cloudnative-monitoring Kindly requesting a review, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for kubernetes changes.
nit: the sanitisation changes were not part of the issue description. Maybe to be added for clarification
Thanks! Updated the description to mention the rationale behind the sanitization changes. |
@elastic/stack-monitoring Looks like I need a review from you as well. Thanks in advance. |
@smith could we have someone here to review? |
@pierrehilbert Sorry for the delay, I'll be taking a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGT Stack Monitoring
Thanks @consulthys |
* fix go vet errors with Go 1.24 The cmd/vet in Go 1.24 reports printf calls with non-const format and no args, causing failures. ``` $ go install golang.org/dl/gotip@latest $ gotip download $ gotip vet ./... ``` * use os.WriteFile * more linter fixes * even more linter fixes * more more more linter fixes * fix wrong variable name * fix linter issues with emptyIface (cherry picked from commit 5de2287)
* fix go vet errors with Go 1.24 The cmd/vet in Go 1.24 reports printf calls with non-const format and no args, causing failures. ``` $ go install golang.org/dl/gotip@latest $ gotip download $ gotip vet ./... ``` * use os.WriteFile * more linter fixes * even more linter fixes * more more more linter fixes * fix wrong variable name * fix linter issues with emptyIface
* fix go vet errors with Go 1.24 The cmd/vet in Go 1.24 reports printf calls with non-const format and no args, causing failures. ``` $ go install golang.org/dl/gotip@latest $ gotip download $ gotip vet ./... ``` * use os.WriteFile * more linter fixes * even more linter fixes * more more more linter fixes * fix wrong variable name * fix linter issues with emptyIface (cherry picked from commit 5de2287) Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
Proposed commit message
The cmd/vet in Go 1.24 reports printf calls with non-const format and no args, causing failures. Additionally, I had to resolve linter issues in the affected files. One particular linter error was actually a vulnerability related to path traversal for zip and tar files.
See https://go.dev/issues/60529
How to test this PR locally
Related issues