After upgrading Go from 1.21 to 1.22 using mise, vim-go stopped doing
things that I’m used to it doing automatically. For example, the plugin would
normally remove the os
import from this file, since it’s not being used:
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println("Hello, World")
}
The solution is to upgrade the binaries with GoUpdateBinaries
.
I had been chasing down mise, since this is a new tool in my belt, and thinking it had screwed something up. But no, just need to update my tools.