{"record":{"id":"4b3de8fcaf3f4490","repo":"jdx/mise","slug":"remote-mise-path-does-not-name-an-executable-com","errorCode":null,"errorMessage":"remote mise path does not name an executable: {command:?}","messagePattern":"remote mise path does not name an executable: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/remote.rs","lineNumber":1242,"sourceCode":"esac\"#,\n        shell_quote(command),\n        shell_quote(command),\n    );\n    let output = session.output_async(&[\"sh\", \"-lc\", &script]).await?;\n    validated_absolute_remote_path_output(&output, \"remote login executable\")\n}\n\nfn resolve_remote_mise_path(\n    command: &str,\n    project: &str,\n    remote_home: Option<&str>,\n) -> Result<String> {\n    if command.starts_with('/') {\n        return Ok(command.to_string());\n    }\n    if let Some(suffix) = command.strip_prefix(\"~/\") {\n        if suffix.is_empty() {\n            bail!(\"remote mise path does not name an executable: {command:?}\");\n        }\n        let home = remote_home.ok_or_else(|| eyre!(\"remote login home was not resolved\"))?;\n        return Ok(format!(\"{}/{suffix}\", home.trim_end_matches('/')));\n    }\n\n    let mut components = Vec::new();\n    for component in command.split('/') {\n        match component {\n            \"\" | \".\" => {}\n            \"..\" => {\n                if components.pop().is_none() {\n                    bail!(\"relative remote mise path escapes the staged project: {command:?}\");\n                }\n            }\n            component => components.push(component),\n        }\n    }\n    if components.is_empty() {","sourceCodeStart":1224,"sourceCodeEnd":1260,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/remote.rs#L1224-L1260","documentation":"mise normalizes the configured remote mise path to an absolute executable path. Absolute paths pass through; `~/`-prefixed paths are expanded against the resolved remote home. This error fires when the command is exactly `~/` (or `~` with empty suffix), leaving no executable name to expand.","triggerScenarios":"Configuring the remote mise path as `~/` (empty after the tilde-slash prefix) in RemoteHost options; resolution runs during remote mise path normalization before provisioning.","commonSituations":"A config template left the version/tool segment empty (e.g. `{{mise_dir}}/` interpolated to `~/`); a typo truncating the path in mise.toml or CLI flags.","solutions":["Set the full path including the binary name, e.g. `~/bin/mise` or `~/.local/bin/mise`","Use an absolute path like `/home/user/.local/bin/mise` if home-relative expansion is not needed","Omit the custom path entirely to let mise auto-discover or install the remote binary"],"exampleFix":"// before in host config\nremote_mise = \"~/\"\n// after\nremote_mise = \"~/.local/bin/mise\"","handlingStrategy":"validation","validationCode":"// reject ~/ with no executable suffix before calling\nfn valid_remote_mise_path(p: &str) -> bool {\n    if let Some(suffix) = p.strip_prefix(\"~/\") {\n        return !suffix.is_empty();\n    }\n    !p.trim().is_empty()\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always include the binary name in the configured path","Interpolate config templates fully; never leave trailing separators","Prefer absolute paths for remote mise binaries"],"tags":["config","path-validation","remote"],"backgroundTag":"invalid-argument-value","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}