{
  "id": "go/invalid-go-version-in-module",
  "signature": "go: example.com/module@v1.0.0: invalid go version '1.21': must be X.Y.Z",
  "signature_zh": "go: example.com/module@v1.0.0: 无效的 go 版本 '1.21'：必须是 X.Y.Z 格式",
  "regex": "go:\\ example\\.com/module@v1\\.0\\.0:\\ invalid\\ go\\ version\\ '1\\.21':\\ must\\ be\\ X\\.Y\\.Z",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The 'go' directive in go.mod specifies a version string that does not follow the required semantic versioning format (e.g., '1.21' instead of '1.21.0').",
  "root_cause_type": "generic",
  "root_cause_zh": "go.mod 中的 'go' 指令指定了一个不符合所需语义版本格式的版本字符串（例如，'1.21' 而不是 '1.21.0'）。",
  "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": "Changing the go directive to a non-existent version like '1.99'",
      "why_fails": "Go only supports releases; non-existent versions cause the toolchain to fail to locate the proper standard library.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the go directive entirely",
      "why_fails": "Without a go directive, the module defaults to an older version, potentially causing incompatibilities with newer language features.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Correct the go directive to use proper semantic versioning (e.g., 1.21.0)",
      "success_rate": 0.95,
      "how": "Edit go.mod: replace 'go 1.21' with 'go 1.21.0'",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use 'go mod edit -go=1.21.0' to fix it automatically",
      "success_rate": 0.9,
      "how": "go mod edit -go=1.21.0",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}