jdx/mise · error
cannot upgrade because not every request binding was…
Error message
cannot upgrade {} because not every request binding was resolved What it means
A lockfile upgrade rewrites request bindings (which tool requirement maps to which resolved version). If `bind_requests` fails to resolve every binding while upgrading the lockfile format, mise aborts rather than writing a partially-upgraded lockfile with dangling requests.
Solutions
- Run a plain `mise lock` (no --upgrade) to re-resolve from current config, then retry the upgrade
- Reconcile mise.toml with the lockfile so every locked request still has a configured source
- Check that target platforms include all platforms the lockfile covers
Example fix
// before mise lock --upgrade # fails: unresolved request binding // after mise lock # full re-resolution mise lock --upgrade
Defensive patterns
Strategy: fallback
Try / catch
// bash: fall back to full regeneration on upgrade failure
mise lock --upgrade || { rm mise.lock; mise lock; } Prevention
- Regenerate lockfiles rather than upgrading stale ones spanning config changes
- Keep tool requests and lockfile entries aligned with mise.toml
When it happens
Trigger: `mise lock --upgrade` on a lockfile with `needs_upgrade()` true where `bind_requests` returns false — one or more tool requests could not be bound to a resolved tool/platform entry.
Common situations: Lockfiles referencing tools no longer present in mise.toml; unavailable platforms in `target_platforms`; version sources that fail to resolve during upgrade.
Understand the failure class
Background: "Invalid state transition" errors: "status must be X, actually Y", "already rejected/charging/uninstalled", "cannot ... while running" — what they mean when a library rejects your call — this error's family across 31 libraries.
Related errors
- cannot upgrade because no configured tools were resolved
- additional_artifacts must be an array in lockfile
- aube lockfile mapping keys must be strings
- aube lockfile must contain a mapping
- brew-cask: refusing to remove generic artifact outside
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/bf4396e164f4abb7.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/lock.rs:751
} else {
self.process_tools(&settings, &tools, &target_platforms, &mut lockfile)
.await?
};
let resolution_succeeded = resolution_errors.is_empty();
all_resolution_errors.extend(resolution_errors);
let platform_regressions =
self.platform_regression_errors(&lockfile, &stale_versions, &results);
if !platform_regressions.is_empty() {
all_platform_regressions.extend(platform_regressions);
continue;
}
let format_changed = self.upgrade && lockfile.needs_upgrade() && resolution_succeeded;
if format_changed {
self.prepare_lockfile_format(&lockfile_path, &mut lockfile);
if !self.bind_requests(&mut lockfile, &tools, &target_platforms) {
bail!(
"cannot upgrade {} because not every request binding was resolved",
display_path(&lockfile_path)
);
}
} else {
self.bind_requests(&mut lockfile, &tools, &target_platforms);
}
Box::pin(lockfile::generate::populate_uv_locks(
&config,
&mut lockfile,
&tools,
self.bump,
installed.is_some(),
))
.await?;
if !generate || self.bump || format_changed {
Box::pin(lockfile::generate::populate_aube_locks(
&mut lockfile,View on GitHub (pinned to 533346cc37)