-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update golangci-lint to 1.64.6 and update code to conform #4604
Conversation
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.
Apart from the small comments I made around the usetesting
configuration, the rest looks pretty well. Nice improvement!
Hmmm ... I really just didn't want to remove some linting we are doing. But it seems that this doesn't work great with windows, so I am currently for just dropping usetesting entirely and opening an issue around it? WDYT @joanlopez |
I think that's because Unix and Windows handle open files differently: Unix permits removing an open file while Windows does not, but overall I think we should try to always close temporary files in tests as good practice. Indeed, in this case I suspect that the line That said, I think the concrete problem here is that:
So, I'd suggest doing something like bumpGolangci...bumpGolangci-2. There's likely a bit cleaner way of doing so, but just to give you an example of the idea. That seems to be working fine. |
OOPS I read that as it is way too hard to make it work and went ahead and reverted the changes. But if the needed changes are what you provided in that PR do you want to fix the lint problem there and merge it here ? |
What?
Bump golangci-lint to latest version
Why?
Mostly so it actually works with a version that works with go1.24, but also as to get some bugfixes ... and new stuff.
Checklist
make check
) and all pass.Checklist: Documentation (only for k6 maintainers and if relevant)
Please do not merge this PR until the following items are filled out.
Related PR(s)/Issue(s)