-
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: checksum mismatch for x8s.io/[email protected]+incompatible #27925
Comments
Okay so the workaround is to manually |
@jharshman is there further investigation that needs to be done for this issue? Is there documentation that you are suggesting should be updated? If not, it sounds like this issue can be closed. |
Is it possible that you were running more than one build concurrently? (#26794) |
@katiehockman I would say this particular issue shouldn't be closed because this seems to be a symptom of a larger issue and needs to be addressed. As @bcmills mentioned, And @bcmills to answer your question, no this was the only build running. There were no other builds going on concurrently. |
Also seeing this problem but not sure if this is due to GOOS mismatch. I am using WSL (Ubuntu x64) on Windows 10 to run
I also recreate the |
@katiehockman please remove the WaitingForInfo label unless there is more information that you are requesting. The best solution I have found is to |
@jharshman Could you try a Go build from source at commit I wonder if this is a side-effect of #27153. |
Im having similar issue with golang master branch on my travis build. What's resolution for this? |
@leakingtapan, try a For CI-related issues, though, you're more likely running up against #26794. |
I tried 1bca6ce with no luck. I also tried 8081862 which was working on my Travis build, but now even this is failing.
|
Same issue here:
|
@leakingtapan @Cosmonawt @jharshman @F21 If you are running 1bca6ce your h1 hashes will, unfortunately, have to be updated once. Both kubernetes/kubernetes and kubernetes/client-go use export-subst which is disabled by this change:
If you are running 1bca6ce you should get the same hash moving forward. Just delete the old hash and use the new one. Again, you should only have to do this once. I imagine a lot of folks will run into this issue since k8s repos appear to use export-subst in various places. If you are seeing inconsistent hashing results I recommend:
If the hash changes for you after that then please report back. |
@jasonkeene thx for providing the solution. In order to not break people who is using go1.11 to build our package, I decided to stay with go1.11 for a while. This makes my travis build and mac build happy. However, when I tried build on a linux machine the issue even happen on go1.11, which is surprising. Here is the output: mac
linux
|
Yes this might be the problem 1bca6ce was intended to solve. Can you diff the contents of the two zip files that produce the different hashes? |
Thanks for the solution @jasonkeene , but building Go from source is the verification, not a long term solution. We need to be able to build projects reliably cross teams, platforms, and in CI. It sounds like a bug-fix release needs to be cut from this. |
@jharshman For sure compiling from source was just to test to make sure this was your issue. As far as the bug fix release, pretty sure @bcmills is on it here: #28094 I would still like you to try the above steps to make sure you are not running into another issue and that the bug fix will actually fix your problem. |
…e enabled again once release containing this fix is out. See golang/go#27925
@jasonkeene sure let me verify that I don't hit any other issues 👍 |
I'm not sure if it's related, but this may be related to an issue we've been having with modules: #27952 We've had situations where the incomplete project didn't compile, but we've also had times that it compiled, but had the wrong hash because files were missing. |
@jasonkeene verified the fix by compiling from source after 1bca6ce. Works after removing the older hashes. |
Awesome, good to know! |
@lastzero you're most probably hitting #29278 (comment) |
@simonpasquier Thank you! Looks like the follow-up "bug". For those also affected: I had to change settings in GoLand (didn't automatically detect latest Go version) plus delete Go module caches locally and on Travis CI. |
This was necessary to fix the following issue: golang/go#27925
Using 1.11.5 and still have this impact OS: Darwin/Mojave Edit: apparently it works after I do:
|
If your machine is macOS or WSL and your CI is Linux, you can add this command to the CI config. sed -e '/^k8s.io\/client-go /d' -i go.sum Here is an example for CircleCI: version: 2
jobs:
build:
docker:
- image: circleci/golang:1.11.2
steps:
- checkout
# workaround for https://github.com/golang/go/issues/27925
- run: sed -e '/^k8s.io\/client-go /d' -i go.sum
- run: go vet |
d:\xxx>go version d:\xxx>go mod tidy |
verifying github.com/kylelemons/[email protected]: che |
@runner-mei Did you try |
@lastzero oooo, it is ok! |
What version of Go are you using (
go version
)?Go 1.11
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?darwin
amd64
What did you do?
go build ./...
reproduction is difficult because including the package
k8s.io/client-go
causes incompatible dependencies to be pulled in which is something I have to solve manually.What did you expect to see?
A repeat of successful builds from the day before.
What did you see instead?
A checksum mismatch this morning after cloning the project to my personal laptop and attempting a build.
The text was updated successfully, but these errors were encountered: