Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: go mod tidy misses adding certain lines to go.sum #28129
What did you do?
The reproduction steps and results are located in this repository: https://github.com/jsternberg/gotidyissue
What did you expect to see?
What did you see instead?
It doesn't seem to add all entries to
I will add more to this issue as I run into them. We weren't sure if it was a bug when we were encountering it.
Thank you for the repo to be precise about what you were doing. However, bug reports have 3 parts:
I don't see specific answers to 2 and 3 anywhere. You wrote "It doesn't seem to add all entries to go.sum." What is missing, specifically?
Ah, I thought I had included that.
Here's the full set of commands and their outputs that illustrate the problem.
In the example, I run
My expectation is that
@jsternberg the example you listed here:
You also mentioned:
Do you have a reproducible example where you saw this type of behavior without a
Sorry if this is not a 100% helpful comment, but just trying to see if a few questions might help advance the conversation here...