{"record":{"id":"2bbc6de45b8c4003","repo":"jdx/mise","slug":"install-command-install-command-exited-success","errorCode":null,"errorMessage":"install_command `{install_command}` exited successfully but installed no executable into {}; check that it installs into $MISE_TOOL_INSTALL_PATH and that it fails when the build fails","messagePattern":"install_command `(.+?)` exited successfully but installed no executable into (.+?); check that it installs into \\$MISE_TOOL_INSTALL_PATH and that it fails when the build fails","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/backend/spm.rs","lineNumber":707,"sourceCode":"    }\n    Ok(executables\n        .into_iter()\n        .filter(|e| filter.contains(e))\n        .collect())\n}\n\n/// Verifies that `install_command` actually installed an executable into `bin/`.\n///\n/// A package's install script may exit 0 even when the underlying `swift build`\n/// failed (for example when the script does not use `set -e`), which would\n/// otherwise leave mise reporting a successful install for a directory that has\n/// no runnable tool in it.\nfn verify_install_command_output(install_command: &str, bin_path: &Path) -> eyre::Result<()> {\n    if !file::ls(bin_path)?\n        .iter()\n        .any(|entry| entry.is_file() && file::is_executable(entry))\n    {\n        bail!(\n            \"install_command `{install_command}` exited successfully but installed no executable into {}; check that it installs into $MISE_TOOL_INSTALL_PATH and that it fails when the build fails\",\n            bin_path.display()\n        );\n    }\n    Ok(())\n}\n\n#[derive(Clone, Debug, Eq, PartialEq)]\npub(crate) struct GitProvider {\n    pub api_url: String,\n    pub kind: GitProviderKind,\n}\n\nimpl Default for GitProvider {\n    fn default() -> Self {\n        Self {\n            api_url: github::API_URL.to_string(),\n            kind: GitProviderKind::GitHub,","sourceCodeStart":689,"sourceCodeEnd":725,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/backend/spm.rs#L689-L725","documentation":"After running a custom install_command, verify_install_command_output checks that at least one executable file landed in the bin directory. If the command exited 0 but produced no runnable tool, mise treats it as a broken install script and fails loudly rather than silently installing nothing.","triggerScenarios":"run_install_command executes a tool's install_command that exits successfully but the $MISE_TOOL_INSTALL_PATH/bin directory contains no executable files — verified via file::ls and file::is_executable.","commonSituations":"A custom install script with the wrong output directory (writes elsewhere than $MISE_TOOL_INSTALL_PATH), a build that silently no-ops, or a script that copies binaries without the executable bit.","solutions":["Make the install_command place executables into $MISE_TOOL_INSTALL_PATH/bin and chmod +x them","Ensure the script exits non-zero when the build fails","Run the install_command manually and inspect where artifacts are written","Check mise debug output (MISE_DEBUG=1) to see the bin_path being verified"],"exampleFix":"// before (install script)\nmake build  # outputs to ./dist/tool\n// after\nmake build && install -m 0755 ./dist/tool \"$MISE_TOOL_INSTALL_PATH/bin/tool\"","handlingStrategy":"validation","validationCode":"// run the install_command locally and assert output\n\"$INSTALL_CMD\" && test -x \"$MISE_TOOL_INSTALL_PATH/bin/<tool>\" || echo \"install_command broken\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always install executables into $MISE_TOOL_INSTALL_PATH/bin with exec permission","End install scripts with 'set -e' and non-zero exit on build failure","Smoke-test install_command in CI before publishing the tool config"],"tags":["swiftpm","install-script","executable"],"backgroundTag":"file-not-found","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"}