{"record":{"id":"56bd43b12ff7f8c4","repo":"zed-industries/zed","slug":"eval-cli-binary-not-found-at-binary-build-it-wi","errorCode":null,"errorMessage":"eval-cli binary not found at {binary}. Build it with: cargo build --release -p eval_cli","messagePattern":"eval-cli binary not found at (.+?)\\. Build it with: cargo build --release -p eval_cli","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"warning","filePath":"crates/eval_cli/zed_eval/agent.py","lineNumber":101,"sourceCode":"        await self._install_uv_and_ruff(environment)\n\n        # Modal can mount a prebuilt binary inside each sandbox, avoiding uploads.\n        container_path = self._extra_env.get(\"EVAL_CLI_CONTAINER_PATH\")\n        if container_path:\n            await self.exec_as_root(\n                environment,\n                command=(\n                    f\"cp {shlex.quote(container_path)} /usr/local/bin/eval-cli && \"\n                    \"chmod +x /usr/local/bin/eval-cli && \"\n                    \"eval-cli --help\"\n                ),\n            )\n            return\n\n        if self._binary_path:\n            binary = Path(self._binary_path)\n            if not binary.exists():\n                raise FileNotFoundError(\n                    f\"eval-cli binary not found at {binary}. \"\n                    \"Build it with: cargo build --release -p eval_cli\"\n                )\n            await environment.upload_file(\n                source_path=binary,\n                target_path=\"/usr/local/bin/eval-cli\",\n            )\n            await self.exec_as_root(\n                environment,\n                command=\"chmod +x /usr/local/bin/eval-cli && eval-cli --help\",\n            )\n            return\n\n        if self._download_url:\n            await self.exec_as_root(\n                environment,\n                command=(\n                    f\"curl -fsSL {shlex.quote(self._download_url)} \"","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/eval_cli/zed_eval/agent.py#L83-L119","documentation":"ensure_markdown_path requires at least one path segment so there is a file name to check. When the path segment list is empty (no last() available), the importer bails because there is no file to import. It is reached for raw.githubusercontent.com URLs with an empty path and for blob URLs where nothing follows the reference.","triggerScenarios":"A raw.githubusercontent.com URL with an empty path, or a github.com blob URL like github.com/owner/repo/blob/main where file_path after the reference is empty, so path_segments.last() is None.","commonSituations":"Hand-edited or truncated URLs that stop at the branch name; a URL where the file name part was accidentally deleted.","solutions":["Append the full path to the .md file, e.g. https://raw.githubusercontent.com/owner/repo/main/SKILL.md","Recopy the URL from the file page rather than constructing it by hand"],"exampleFix":"# before\nhttps://github.com/acme/skills/blob/main\n\n# after\nhttps://github.com/acme/skills/blob/main/SKILL.md","handlingStrategy":"validation","validationCode":"let has_file_segment = url.path_segments()\n    .map(|mut s| s.next_back().is_some_and(|name| !name.is_empty()))\n    .unwrap_or(false);\nensure!(has_file_segment, \"Paste a GitHub .md URL\");","typeGuard":"fn ends_with_file_name(url: &url::Url) -> bool {\n    url.path_segments()\n        .and_then(|s| s.last())\n        .is_some_and(|name| !name.is_empty())\n}","tryCatchPattern":null,"preventionTips":["Require a non-empty final path segment in the form before import","Avoid hand-constructing raw URLs; copy them from GitHub's Raw button"],"tags":["url-validation","github","path-parsing"],"backgroundTag":"url-path-parsing","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}