-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Removes conflicting versions of containerd/containerd dependency #1425
Removes conflicting versions of containerd/containerd dependency #1425
Conversation
Signed-off-by: Antonio Osorio <antonio.f.osorio@gmail.com>
53610ec
to
b52ebab
Compare
This change is targeting master, but you're using buildkit v0.6.3, which is on another branch, and which expects a different version of containerd; https://github.com/moby/buildkit/blob/v0.6.3/go.mod#L12 |
Checking again master seems to have the same issue:
|
Regarding the v0.6.3. It is a bit misleading because I am using a fork and that was the last tag that synced.. but it the code has since been synced to moby/buildkit master. :( |
Signed-off-by: Antonio Osorio <antonio.f.osorio@gmail.com>
There was some discussion about this in #1376 (comment) @tonistiigi @AkihiroSuda PTAL |
#1297 has some details on this. Since go1.13 , go broke the ability to correct the detected version number for a commit if the gomod gets it wrong. That means that for projects that use release branches can't be imported from master branch without replace rules. We can't use the automatically detected That means that for now when you want to import buildkit with go.mod you need to copy the replace rules buildkit uses to your go.mod file as well Lines 81 to 83 in 195f9e5
I know this is really crappy solution and I'm really sad go decided to break all these projects (with no justification afaik) but this is out of our control. |
Should we add a comment in the |
one caveat of the solution proposed is that the project that depends on buildkit, either directly or transitively, will need to monitor for changes in the buildkit/go.mod file. Otherwise it will remain pinned at the version that was current during the first time the user encountered the problem. |
Yes, this definitely has problems as well and we wouldn't do it if there was another way. Closing this for now. We should definitely add docs for how to depend on buildkit packages and how to update go.mod though. |
Addresses the following error when depending on buildkit:
Which otherwise requires the workaround of having the require statement:
in importing libraries.
** Note: this change does not modify the dependency version used, the same version (1.3.1) is loaded on the vendor folder by
go mod vendor
. Version 1.4.0 does not exist