{
  "id": "go/os-exec-command-not-found",
  "signature": "error: exec: \"command\": executable file not found in %PATH%",
  "signature_zh": "错误：exec：\"command\"：在 %PATH% 中找不到可执行文件",
  "regex": "error:\\ exec:\\ \"command\":\\ 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.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Hardcoding full path to executable",
      "why_fails": "Path may differ across systems; use exec.LookPath to verify.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use exec.LookPath to find command before execution",
      "success_rate": 0.95,
      "how": "path, err := exec.LookPath(\"command\")\nif err != nil { return fmt.Errorf(\"command not found: %w\", err) }\ncmd := exec.Command(path, args...)",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}