Skip to content

Rename "Example" tests to satisfy Go 1.24's new vet rule #117

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

Conversation

tianon
Copy link
Member

@tianon tianon commented Mar 5, 2025

In Go 1.24, there's a new go vet rule that complains about Example* test functions that don't follow the documented naming convention. Combine that with go test running go vet by default, and you've got a perfect storm.

This renames our "example" tests to satisfy Go's naming convention.

Closes #116

In Go 1.24, there's a new `go vet` rule that complains about `Example*` test functions that don't follow the documented naming convention.  Combine that with `go test` running `go vet` by default, and you've got a perfect storm.

This renames our "example" tests to satisfy Go's naming convention.
@tianon tianon requested a review from yosifkit as a code owner March 5, 2025 19:32
Copy link
Member

@yosifkit yosifkit left a comment

Choose a reason for hiding this comment

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

Thanks Go. 🥉

@yosifkit yosifkit merged commit cf3e388 into docker-library:master Mar 5, 2025
9 checks passed
@tianon tianon deleted the i-hate-go-yes-i-do-i-hate-go-how-bout-u branch March 6, 2025 22:55
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.

Issues while testing
2 participants