Hi all, I've been happily using go modules for several months. A couple days ago, I decided to update my dependencies with go get -u. This failed with:
go: github.com/golang/lint@v0.0.0-20190409202823-959b441ac422: parsing go.mod: unexpected module path "golang.org/x/lint" Which led me to: https://github.com/golang/go/issues/30831 So then I added a replace directive but that failed too because of https://github.com/golang/go/issues/26904 Which means as long as I depend on the golint package, then go get -u will not work. And then it occurred to me: how and why is this package being pulled in? If i can remove my module's transitive dependency on golint, then go get -u will start working. So I first ran go mod tidy. Then I used go mod why however that was no help because whenever i executed go mod why on the module, this is the output returned: (main module does not need module github.com/golang/lint) I also verified that github.com/golang/lint is not in my go.mod after running go mod tidy. My understanding of tidy is that it pulls in direct and transitive module dependencies ergo if go get -u is trying to upgrade my deps according to go.mod, then it should be in my go.mod. So I am stumped why go get -u is trying to upgrade golint, when according to go mod tidy, my go.mod file, and go mod why, I don't have a dependency on it. Any advice would be appreciated. Thanks, Joe -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0cb6129b-32aa-4be5-aa33-ab266ab2317c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.