{
  "id": "go/toolchain-not-available",
  "signature": "go: go.mod requires go >= 1.22.0 (running go 1.21.5; GOTOOLCHAIN=local)",
  "signature_zh": "go: go.mod 要求 go >= 1.22.0（当前运行 go 1.21.5；GOTOOLCHAIN=local）",
  "regex": "go:\\ go\\.mod\\ requires\\ go\\ >=\\ 1\\.22\\.0\\ \\(running\\ go\\ 1\\.21\\.5;\\ GOTOOLCHAIN=local\\)",
  "domain": "go",
  "category": "toolchain_error",
  "subcategory": null,
  "root_cause": "go.mod declares a newer Go version than the installed toolchain, and GOTOOLCHAIN=local prevents automatic toolchain download.",
  "root_cause_type": "generic",
  "root_cause_zh": "go.mod 声明的 Go 版本高于已安装的工具链，且 GOTOOLCHAIN=local 阻止自动下载工具链。",
  "versions": [
    {
      "version": "1.21+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.22+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "may use language features unavailable in 1.21, causing compile errors",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "off is not a valid value; use local",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "the build does not proceed",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "GOTOOLCHAIN=auto go build ./...",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "go install golang.org/dl/go1.22.0@latest\n~/go/bin/go1.22.0 download\n~/go/bin/go1.22.0 build ./...",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}