For me, the error I got was coming from some generated gRPC code:
ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules
I had to delete the package from ~/go/pkg
and then go get
:
sudo rm -rf ~/go/pkg/mod/google.golang.org/genproto/googleapis
go get google.golang.org/genproto
I had to sudo
the rm -rf
because the file permissions were whack. Maybe the root cause? Not sure.