as of 2025 is still happening:
go mod tidy
solved the issue for me. Which is think it is better than deleting imports or deleting go.mod/go.sum.
Pay attention go mod tidy might take awhile and the first time you will run/build your main.go will also take some time.