Here's a snippet from a go.sum file for a project I maintain.
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls=
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
As far as I can tell, this project, and the other projects it depends on, only use v1.3.5.
Is there a way to determine why v1.3.1 and v1.2.0 are in the go.sum file? For example, can I run go mod why ...
with something in the place of ...
to determine why those lines are present?
I understand they are not being used by the project when I invoke import "github.com/golang/protobuf"
, but I would like to understand the toolchain a little better.