-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: go mod tidy misses adding certain lines to go.sum #28129
Comments
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 |
@gopherbot, please add label modules |
@jsternberg the example you listed here: https://github.com/jsternberg/gotidyissue/blob/master/go.mod has this
If you look over #27176 or #27868, does it seem like you might be seeing one of those? 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... |
I'm going to close this as a dup of #27868, because it sounds sufficiently similar (based on the information provided thus far) to #27868 (comment). Please shout if that's not the case. |
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?
I expected
go mod tidy
to produce the finalgo.mod
andgo.sum
files.What did you see instead?
It doesn't seem to add all entries to
go.sum
. It adds all of thego.mod
entries, but it doesn't always get them all. This was one specific scenario using replace, but I think I've also seen it miss entries with non-replace directives.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.
System details
The text was updated successfully, but these errors were encountered: