{
  "id": "go/exec-command-not-found",
  "signature": "exec: \"somecmd\": executable file not found in $PATH",
  "signature_zh": "exec: \"somecmd\": 在 $PATH 中找不到可执行文件",
  "regex": "exec:\\ \"somecmd\":\\ executable\\ file\\ not\\ found\\ in\\ \\$PATH",
  "domain": "go",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "The specified command is not installed or not in the system's PATH environment variable.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的命令未安装或不在系统的 PATH 环境变量中。",
  "versions": [
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Program fails at runtime; no fallback.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Path may not exist; same error.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use exec.LookPath to verify before running: path, err := exec.LookPath(\"somecmd\"); if err != nil { handle }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Provide full path: cmd := exec.Command(\"/usr/local/bin/somecmd\")",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}