{"record":{"id":"8c39b0040ec79995","repo":"astral-sh/uv","slug":"failed-to-locate-the-standalone-install-receipt-fo","errorCode":null,"errorMessage":"Failed to locate the standalone install receipt for `{app_name}`","messagePattern":"Failed to locate the standalone install receipt for `(.+?)`","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/self_update.rs","lineNumber":588,"sourceCode":"    }\n\n    let stdout =\n        (!output.stdout.is_empty()).then(|| String::from_utf8_lossy(&output.stdout).to_string());\n    let stderr =\n        (!output.stderr.is_empty()).then(|| String::from_utf8_lossy(&output.stderr).to_string());\n    Err(AxoupdateError::InstallFailed {\n        status: output.status.code(),\n        stdout,\n        stderr,\n    })\n}\n\n/// Read whether the existing standalone install opted out of PATH modification.\n///\n/// Older receipts that lack this field default to `true` for modifying PATH.\nfn load_receipt_modify_path(app_name: &str) -> Result<bool> {\n    let Some(receipt_path) = find_receipt_path(app_name)? else {\n        anyhow::bail!(\"Failed to locate the standalone install receipt for `{app_name}`\");\n    };\n\n    // Axoupdater does not expose `modify_path`, so we re-read the already-validated receipt.\n    let receipt = fs_err::read(&receipt_path).with_context(|| {\n        format!(\n            \"Failed to read install receipt at `{}`\",\n            receipt_path.display()\n        )\n    })?;\n    let receipt: StandaloneInstallReceipt =\n        serde_json::from_slice(&receipt).with_context(|| {\n            format!(\n                \"Failed to parse install receipt at `{}`\",\n                receipt_path.display()\n            )\n        })?;\n    Ok(receipt.modify_path)\n}","sourceCodeStart":570,"sourceCodeEnd":606,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/self_update.rs#L570-L606","documentation":"Error \"Failed to locate the standalone install receipt for `{app_name}`\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/self_update.rs:588 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f1a42680ff5272232d65748acf338b19778dde24","analyzedAt":"2026-08-16T04:51:47.599Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}