{"record":{"id":"ace9dcde81e29aec","repo":"jdx/mise","slug":"the-packslip-lists-executable-in-but-the-ar","errorCode":null,"errorMessage":"the packslip lists executable {} in {}, but the archive holds no such file","messagePattern":"the packslip lists executable (.+?) in (.+?), but the archive holds no such file","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/backend/packslip.rs","lineNumber":1068,"sourceCode":"\n    /// Put every executable the packslip names into the install's bin dir\n    /// under the name it should have on PATH.\n    fn link_bins(tv: &ToolVersion, artifact: &Artifact) -> Result<()> {\n        if artifact.bin.is_empty() {\n            return Ok(());\n        }\n        let install_path = tv.install_path();\n        let bins_dir = install_path.join(MISE_BINS_DIR);\n        file::create_dir_all(&bins_dir)?;\n        for bin in &artifact.bin {\n            if !file::is_plain_file_name(&bin.name) {\n                bail!(\n                    \"the packslip names an executable {:?}, which is not a plain file name\",\n                    bin.name\n                );\n            }\n            let Some(src) = locate_in_install(&install_path, &bin.path) else {\n                bail!(\n                    \"the packslip lists executable {} in {}, but the archive holds no such file\",\n                    bin.path,\n                    artifact.name\n                );\n            };\n            file::make_executable(&src)?;\n            let dst = bin_link_path(&bins_dir, &bin.name);\n            if dst.exists() || dst.is_symlink() {\n                file::remove_all(&dst)?;\n            }\n            file::make_symlink_or_copy(&src, &dst)?;\n        }\n        Ok(())\n    }\n\n    /// Every version the vendor published, before stamps are applied.\n    async fn vendor_versions(&self, raw_opts: &ToolVersionOptions) -> Result<Vec<VersionInfo>> {\n        let project = self.project()?;","sourceCodeStart":1050,"sourceCodeEnd":1086,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/backend/packslip.rs#L1050-L1086","documentation":"Packslip link_bins: the signed manifest declares an executable at a path inside the archive, but after extraction no such file exists at that path. The install is aborted because the bin directory would otherwise be missing a promised executable — usually a wrong path in the manifest or an archive layout change.","triggerScenarios":"link_bins calls locate_in_install(&install_path, &bin.path) and gets None — the archive layout changed, the path in the manifest is wrong for this platform's archive, or the archive didn't extract fully.","commonSituations":"Vendor restructured the tarball (moved binaries into a subdir) without updating the manifest; per-platform archives have different layouts but one shared manifest path; user's download was truncated.","solutions":["Check the extracted install directory (in ~/.local/share/mise/installs/<tool>/<version>/) for where the binary actually lives and fix bin.path in the manifest","Ask the vendor to update the manifest path to match the archive layout","Reinstall/retry in case the archive extraction was interrupted"],"exampleFix":"// before (manifest)\n[[bin]]\nname = 'rg'\npath = 'target/release/rg'\n// after — matches archive layout\n[[bin]]\nname = 'rg'\npath = 'rg'","handlingStrategy":"validation","validationCode":"// verify every bin.path exists in the built archive before publishing\ntar -tf dist/archive.tar.gz | while read -r f; do :; done\nfor p in \"${manifest_bin_paths[@]}\"; do tar -tf dist/archive.tar.gz | grep -qx \"$p\" || echo \"missing: $p\"; done","typeGuard":"null","tryCatchPattern":"// catch and point the user at the archive contents\nmatch install {\n    Err(e) if e.to_string().contains(\"archive holds no such file\") => eprintln!(\"inspect the extracted install dir and report a manifest bug\"),\n    other => other?,\n}","preventionTips":["Extract-and-verify the archive layout in CI before publishing the manifest","Update bin.path in the same PR as any archive restructure","Test installation on at least one platform per archive layout"],"tags":["packslip","archive","bin-missing","manifest"],"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"}