Skip to content
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

make error "checksum mismatch" #1408

Closed
fredchenbj opened this issue Jan 5, 2019 · 7 comments
Closed

make error "checksum mismatch" #1408

fredchenbj opened this issue Jan 5, 2019 · 7 comments

Comments

@fredchenbj
Copy link
Member

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    make

  2. What did you expect to see?

  3. What did you see instead?
    CGO_ENABLED=0 go build -ldflags '-X "github.com/pingcap/pd/server.PDReleaseVersion=v3.0.0-alpha-79-g38221ce" -X "github.com/pingcap/pd/server.PDBuildTS=2019-01-05 09:33:35" -X "github.com/pingcap/pd/server.PDGitHash=38221cebaf157aef1f68e3839bd91cdd73ed0cdf" -X "github.com/pingcap/pd/server.PDGitBranch=master"' -o bin/pd-server cmd/pd-server/main.go
    go: verifying github.com/coreos/[email protected]: checksum mismatch
    downloaded: h1:X15ii/EYFV9j7Hgj8VwtpSe65vGy7RYrX9oIDgXvRHk=
    go.sum: h1:zhOJad+Mv6DJ3IdTSoOubih2OeMTZFH+qs21GS5uHP8=
    make: *** [build] Error 1

  4. What version of PD are you using (pd-server -V)?
    commit 38221ce

@rleungx
Copy link
Member

rleungx commented Jan 5, 2019

@fredchenbj Thanks for your feedback!
And what is your go version?

@fredchenbj
Copy link
Member Author

@rleungx go version go1.11.4 darwin/amd64

@rleungx
Copy link
Member

rleungx commented Jan 5, 2019

@fredchenbj Can you try to run go clean -modcache first?
There is a known issue for this problem. See golang/go#29281.

@fredchenbj
Copy link
Member Author

@rleungx after I run go clean -modcache, the above error still occurs.

@rleungx
Copy link
Member

rleungx commented Jan 5, 2019

@fredchenbj Can you remove go.sum and regenerate it to see if it can success? Or use go 1.11.2 instead.

@fredchenbj
Copy link
Member Author

@rleungx I change go.sum with downloaded checksum, it is ok now.

downloaded: h1:X15ii/EYFV9j7Hgj8VwtpSe65vGy7RYrX9oIDgXvRHk=
go.sum: h1:zhOJad+Mv6DJ3IdTSoOubih2OeMTZFH+qs21GS5uHP8=

@rleungx
Copy link
Member

rleungx commented Jan 5, 2019

Feel free to ask any question if you have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants