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:
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:
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