{
  "id": "go/invalid-go-version-directive",
  "signature": "go: invalid go version 'go1.2x': must be of the form go1.xx",
  "signature_zh": "go: 无效的 go 版本 'go1.2x': 必须为 go1.xx 格式",
  "regex": "go:\\ invalid\\ go\\ version\\ 'go1\\.2x':\\ must\\ be\\ of\\ the\\ form\\ go1\\.xx",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The go directive in go.mod specifies an invalid version string, such as a typo or unsupported version.",
  "root_cause_type": "generic",
  "root_cause_zh": "go.mod 中的 go 指令指定了无效的版本字符串，例如拼写错误或不支持的版本。",
  "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"
    },
    {
      "version": "1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing the go directive entirely from go.mod.",
      "why_fails": "Go will default to the current toolchain version, which may cause other compatibility issues.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Setting a very high go version like 'go1.99' to avoid errors.",
      "why_fails": "Go only recognizes valid releases; invalid versions cause errors.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Correct the go version to a valid one matching your Go installation.",
      "success_rate": 0.95,
      "how": "Edit go.mod: change 'go 1.2x' to 'go 1.21' (or your installed version). Run 'go version' to check.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use 'go mod edit -go=1.21' to set the correct version.",
      "success_rate": 0.9,
      "how": "Run: 'go mod edit -go=1.21' to update the directive automatically.",
      "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-05-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}