{
  "id": "go/unsupported-go-version-in-module",
  "signature": "go: module github.com/example/mod@v1.0.0 requires go 1.22, but your Go version is go1.20",
  "signature_zh": "go: 模块要求 Go 1.22，但您的 Go 版本是 go1.20",
  "regex": "go:\\ module\\ github\\.com/example/mod@v1\\.0\\.0\\ requires\\ go\\ 1\\.22,\\ but\\ your\\ Go\\ version\\ is\\ go1\\.20",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "A module dependency requires a newer version of Go than what is installed.",
  "root_cause_type": "generic",
  "root_cause_zh": "模块依赖需要比已安装版本更新的 Go 版本。",
  "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"
    },
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Setting GOTOOLCHAIN to force using an older version.",
      "why_fails": "GOTOOLCHAIN only affects the toolchain selection; if the module requires a newer Go, it won't compile.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the go directive from the dependency's go.mod.",
      "why_fails": "You cannot modify third-party modules; the requirement is enforced.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade your Go installation to a compatible version.",
      "success_rate": 0.95,
      "how": "Download and install Go 1.22 or later from golang.org/dl/.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a older version of the module that supports your Go version.",
      "success_rate": 0.8,
      "how": "Run 'go list -m -versions github.com/example/mod' and downgrade to an older version in go.mod.",
      "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.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-04-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}