## 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.
