astral-sh/uv · error · anyhow::Error

Failed to locate the standalone install receipt for `{app_na

Error message

Failed to locate the standalone install receipt for `{app_name}`

What it means

Error "Failed to locate the standalone install receipt for `{app_name}`" thrown in astral-sh/uv.

Source

Thrown at crates/uv/src/commands/self_update.rs:588

    }

    let stdout =
        (!output.stdout.is_empty()).then(|| String::from_utf8_lossy(&output.stdout).to_string());
    let stderr =
        (!output.stderr.is_empty()).then(|| String::from_utf8_lossy(&output.stderr).to_string());
    Err(AxoupdateError::InstallFailed {
        status: output.status.code(),
        stdout,
        stderr,
    })
}

/// Read whether the existing standalone install opted out of PATH modification.
///
/// Older receipts that lack this field default to `true` for modifying PATH.
fn load_receipt_modify_path(app_name: &str) -> Result<bool> {
    let Some(receipt_path) = find_receipt_path(app_name)? else {
        anyhow::bail!("Failed to locate the standalone install receipt for `{app_name}`");
    };

    // Axoupdater does not expose `modify_path`, so we re-read the already-validated receipt.
    let receipt = fs_err::read(&receipt_path).with_context(|| {
        format!(
            "Failed to read install receipt at `{}`",
            receipt_path.display()
        )
    })?;
    let receipt: StandaloneInstallReceipt =
        serde_json::from_slice(&receipt).with_context(|| {
            format!(
                "Failed to parse install receipt at `{}`",
                receipt_path.display()
            )
        })?;
    Ok(receipt.modify_path)
}

View on GitHub (pinned to f1a42680ff)

When it happens

Trigger: Thrown at crates/uv/src/commands/self_update.rs:588 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of astral-sh/uv@f1a42680ff (2026-08-16). Data as JSON: /api/errors/8c39b0040ec79995. Report an issue: GitHub.