-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix go.sum #140
Fix go.sum #140
Conversation
|
Not sure if the checksums are failing due to the TravisCI build cache. However, I've cleared my module cache locally and rebuilt |
Oh noo, I can't reproduce with a clean setup :(((
Output here: https://gist.github.com/fsouza/f8fba9869dbd0ee0add12ce1b2897d06 I'll investigate this later today or some time tomorrow. Thanks for the feedback and sorry about the noise! |
@dhui it does look like it may be a caching issue with Travis. I enabled Travis on my fork and go was able to download An easy "fix" would be to update docker/docker to a newer version and see if the test suite stills passes, this would avoid caching issues that other people may face. We could pin it to the commit right after the current one or we could try to get the latest master and see if everything still works. What do you think? |
Updating docker to a newer released version to get around this issue sounds good. We're due for an update anyways... |
This is an upgrade to the commit that bumped the Docker API to 1.39. Upgrading the lib is actually a workaround for the go.sum + caching issue. Fixes #138. For more details on the issue with checksums, see golang/go#29278.
@dhui yeah unfortunately after moving from docker/docker to moby/moby, the Docker team stopped tagging that repo, so we have to keep picking a commit :( I pinned it to moby/moby@b6242da. This should be good for review now. |
I'd rather avoid picking a commit and use tagged releases. That way, it's clear what version of a dependency we're using. |
There are no tagged releases on docker/docker. |
Try docker/engine |
It's not possible to import github.com/docker/engine in the code, so this would require a
I can do it, but it's very ugly :) Let me know what you think. |
What are the issues you encountered when importing |
Oi... Thanks for investigating! In that case, let's stick with the docker/docker import and use commits which correspond to a release tag in docker/engine. |
Yeah, unfortunately that commit is not in the tree referenced by master on docker/docker :( It's available only on docker/engine's 18.09 branch tree :(
|
Weird, the docs say that Next version to try would be |
Sorry, this strategy isn't gonna work. The tags on docker/engine point to commits that do not exist on docker/docker's tree (though GitHub can render them under docker/docker because docker/engine is a fork). As an alternative, I tried |
Oh, I thought As mentioned earlier, I'd rather not pin to arbitrary commit. I'm not familiar enough with the docker package to know which commits are considered stable (e.g. not an alpha/beta/RC release) and don't have a backwards incompatible changes. It'd also be unclear which commit to use for minor bug fixes. Given the state of the docker/docker package, I think it's better postpone upgrading docker/docker. I've also figured out the issue I was having with the checksum being being regenerated correctly locally. Earlier, I was using Go 1.11.3 instead of Go 1.11.4... I've now updated to Go 1.11.4 and regenerated Thanks again @fsouza for all of the work you've put in to resolving this issue! |
Sounds good. Thanks for the feedback and sorry about the back and forth! :) |
See golang/go#29278.
Fix #138.