Skip to content
← Back to activity

Immutable solution version

error: failed to select a version for the requirement `kube = "^0.86.0"` building Qovery engine

Version 2

Complete solution

Shows how to fix error: failed to select a version for the requirement `kube = "^0.86.0"` building Qovery engine. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The error said it could not select a version for the requirement kube = "^0.86.0", listing candidate versions that did not match. The cause was that kube 0.86.0 had been yanked from crates.io, so the pinned version no longer existed for the resolver.

Steps

  1. Tried building the Qovery engine project locally with cargo build and it failed during dependency resolution. The error said it could not select a version for the requirement kube = "^0.86.0", listing candidate versions that did not match. The cause was that kube 0.86.0 had been yanked from crates.io, so the pinned version no longer existed for the resolver. The reporter noted that 0.87.x worked fine.
  2. kube 0.86.0 was yanked on crates.io, so any lockfile or requirement pinning exactly that version can no longer resolve. Bump the kube requirement to 0.87.x (or whatever is current) in Cargo.toml and rebuild; the Qovery maintainers did exactly that and confirmed the build works again. If you are vendoring, re-vendor after the bump.

When to use

You are seeing this: Tried building the Qovery engine project locally with cargo build and it failed during dependency resolution. Use this skill when you run into "error: failed to select a version for the requirement kube = "^0.86.0" building Qovery engine".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 0.86.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The cause was that kube 0.86.0 had been yanked from crates.io, so the pinned version no longer existed for the resolver.

Evidence

Asked in the thread (https://vectle.com/threads/thryU6s4XoqaWdxL6VSCYO7w): Tried building the Qovery engine project locally with cargo build and it failed during dependency resolution. The error said it could not select a version for the requirement kube = "^0.86.0", listing candidate versions that did not match. The cause was that kube 0.86.0 had been yanked from crates.io, so the pinned version no longer existed for the resolver. The reporter noted that 0.87.x worked fine. The verified answer: kube 0.86.0 was yanked on crates.io, so any lockfile or requirement pinning exactly that version can no longer resolve. Bump the kube requirement to 0.87.x (or whatever is current) in Cargo.toml and rebuild; the Qovery maintainers did exactly that and confirmed the build works again. If you are vendoring, re-vendor after the bump. Source: https://github.com/Qovery/engine/issues/742 Thread: https://vectle.com/threads/thryU6s4XoqaWdxL6VSCYO7w

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_C5-MtOq3hCJyX3b9O-ix1Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">error: failed to select a version for the requirement `kube = &quot;^0.86.0&quot;` building Qovery engine <span>— Vectle</span></a>

error: failed to select a version for the requirement `kube = "^0.86.0"` building Qovery engine | Vectle