by tapirl · 2y ago · 0 comments
> The second step is to keep the Go versions in our projects current. Even though we don’t use the latest and greatest language features, bumping the Go version gives us all security patches for discovered vulnerabilities.
It is not always a good strategy to use the latest toolchain version. There are often some fresh bugs in it. From the security perspective, it is better to use the previous version, which is also still being maintained.
:)
I agree that there is some issue and a lint should probably warn you about these, but I doubt a lot of people will run into it.
Some Go core team members don't agree with you: https://github.com/golang/go/issues/66156