Previously, when I tried to update the Go version in go.mod, the toolchain keyword would automatically be added to go.mod to enable backward compatibility with some of the outdated modules that the project uses. This interfered with goreleaser, so I stayed on Go 1.20 to get the release out.
Recently I have had to reject a couple dependabot PRs because Go Checks was failing with errors like "cannot compile Go 1.22 code", so I figured it's time to upgrade.
The solution was really simple - update all the modules in the project to their latest version to avoid any need for a Go Toolchain. We'll have to run the test suite against this branch to make sure nothing is broken.
Previously, when I tried to update the Go version in go.mod, the toolchain keyword would automatically be added to go.mod to enable backward compatibility with some of the outdated modules that the project uses. This interfered with goreleaser, so I stayed on Go 1.20 to get the release out.
Recently I have had to reject a couple dependabot PRs because Go Checks was failing with errors like "cannot compile Go 1.22 code", so I figured it's time to upgrade.
The solution was really simple - update all the modules in the project to their latest version to avoid any need for a Go Toolchain. We'll have to run the test suite against this branch to make sure nothing is broken.