Skip to content
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

[8.x](backport #41076) fix go vet errors with Go 1.24 #41336

Open
wants to merge 1 commit into
base: 8.x
Choose a base branch
from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 21, 2024

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

$ go install golang.org/dl/gotip@latest
$ gotip download
$ gotip vet ./...

Related issues

* 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)
@mergify mergify bot added the backport label Oct 21, 2024
@mergify mergify bot requested review from a team as code owners October 21, 2024 06:54
@mergify mergify bot requested review from MichaelKatsoulis and tetianakravchenko and removed request for a team October 21, 2024 06:54
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 21, 2024
@mergify mergify bot requested review from mauri870 and khushijain21 and removed request for a team October 21, 2024 06:54
Copy link
Contributor Author

mergify bot commented Oct 21, 2024

This pull request has not been merged yet. Could you please review and merge it @mauri870? 🙏

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Oct 21, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants