I had this problem in Goland (with source code on WSL2 and Goland on win).
I was able to solve it with
go clean -modcache
Subsequent build put everything in order again.
I had this problem in Goland (with source code on WSL2 and Goland on win).
I was able to solve it with
go clean -modcache
Subsequent build put everything in order again.