Problem description
I have a dependency which I need to update to the latest version (1.1.0 to 1.2.0), but when I do and I run go mod tidy - although initially the 1.2.0 version has been downloaded, it is immediately removed since it's not used directly from the module.
I am trying to identify why I am I using google.golang.org/grpc/cmd/protoc-gen-go-grpc in my code.
I've tried the following:
go mod graph | grep protoc-gen-go-> no resultsIt also seems that the module is related to an indirect dependency since the following command shows me that the main module does not directly use this module.
go mod why -m google.golang.org/grpc/cmd/protoc-gen-go-grpc # google.golang.org/grpc/cmd/protoc-gen-go-grpc (main module does not need module google.golang.org/grpc/cmd/protoc-gen-go-grpc)
More info:
go.sum includes this line (generated automatically when i run go mod tidy):
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
Any ideas on how to identify and hence update the module will be much appreciated.