jdx/mise · error
mise's self-update feature has been disabled at build time…
Error message
mise's self-update feature has been disabled at build time, cannot update
What it means
This is the stub implementation of SelfUpdate used when mise is compiled with self-update disabled (e.g. distro packages). run() unconditionally prints packaging instructions and bails because the binary cannot replace itself. It always reports is_available() == false.
Solutions
- Update via the package manager that provided mise
- Install the official mise build from mise.jdx.dev which supports self-update
- Rebuild from source with the self-update feature enabled
Example fix
// before mise self-update # disabled at build time // after sudo apt upgrade mise # or install official build: curl https://mise.run | sh
Defensive patterns
Strategy: fallback
Validate before calling
mise self-update --help >/dev/null 2>&1 && echo available || echo use-package-manager
Try / catch
mise self-update 2>/dev/null || echo 'self-update disabled; use package manager'
Prevention
- Document per-environment how mise is updated (distro package vs official build)
- Detect distro builds early in setup scripts
When it happens
Trigger: Running `mise self-update` on a build compiled without the self-update feature (common for Linux distro packages).
Common situations: Users of apt/dnf/arch-packaged mise attempting self-update; container images built from source without the feature flag.
Related errors
- mise is installed via a package manager, cannot update
- a branch name is required
- a glob is required
- a repository preview directory requires a dry run
- a repository url is required
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/9c0ba55b894b3cbd.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/self_update_stub.rs:38
/// Update even if already up to date
#[usage(long, short)]
force: bool,
/// Skip confirmation prompt
#[usage(long, short)]
yes: bool,
/// Disable auto-updating plugins
#[usage(long)]
no_plugins: bool,
}
impl SelfUpdate {
pub(crate) async fn run(self) -> crate::Result<()> {
if let Some(instructions) = upgrade_instructions_text() {
warn!("{}", instructions);
}
eyre::bail!("mise's self-update feature has been disabled at build time, cannot update");
}
pub(crate) fn is_available() -> bool {
false
}
}
#[derive(Debug, Default, serde::Deserialize)]
struct InstructionsToml {
message: Option<String>,
#[serde(flatten)]
commands: BTreeMap<String, String>,
}
fn read_instructions_file(path: &PathBuf) -> Option<String> {
let body = fs::read_to_string(path).ok()?;
let parsed: InstructionsToml = toml::from_str(&body).ok()?;
if let Some(msg) = parsed.message {
return Some(msg);View on GitHub (pinned to 533346cc37)