Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: incorrect sum for replaced module in either 'mod tidy' or 'mod vendor' #27868
Please answer these questions before submitting your issue. Thanks!
What did you do?
Clone the repo at https://github.com/kevinburke/go-mod-nondeterministic.
What did you expect to see?
What did you see instead?
Does this issue reproduce with the latest release (go1.11)?
In addition, I get the following error when running
Please let me know if I should file a second issue for that.
referenced this issue
Sep 26, 2018
The delta appears within
diff --git a/go.sum b/go.sum index 1d2e68e..034fb23 100644 --- a/go.sum +++ b/go.sum @@ -26,7 +26,6 @@ github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtb github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sourcegraph/zoekt v0.0.0-20180925141536-852b3842c11d h1:82xTRg5XBKlVsvLvgcgQzcG54AFTYhS2DdMVT5U5AWw= github.com/sourcegraph/zoekt v0.0.0-20180925141536-852b3842c11d/go.mod h1:f1Qnbu4glSRTb9A/H7qLv4AhudFf3eStkDbpyb21KYQ= github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
FWIW, I'm manually editing go.sum multiple times per day on a (soon to be, large, probably popular) open source project to work around this issue.
During a user test today I also spoke with someone who said they were sticking with go1.10 because they had a bad experience with Go modules.
I never run
I'm having an issue with
I have a
@thepudds asked on Slack to post the samples of go.sum - attaching 3 files:
Look at the number of lines in
The single line for
"Fix" this using
and check again:
It doesn't; hence we conclude
The "fix" here could involve the use of any