Closed kevinburke1 closed 4 years ago
Maybe dup of https://github.com/golang/go/issues/33554 which can be fixes with updating x/tools dependency.
had to use the following to fix the problem
go get -v github.com/rogpeppe/godef@master
v1.1.2 is released. Thanks @rogpeppe !
I can only reproduce this with a "package main" Go binary in the same directory as go.mod - if I have a main that's nested several directories under go.mod, I can't reproduce. I also can't reproduce in libraries.
Steps to reproduce:
Run
I get the following error: