{
  "id": "go/module-directory-not-found",
  "signature": "go: module example.com/module: directory \"/home/user/go/pkg/mod/example.com/module@v1.0.0\" not found",
  "signature_zh": "go: 模块 example.com/module：目录 \"/home/user/go/pkg/mod/example.com/module@v1.0.0\" 未找到",
  "regex": "go:\\ module\\ example\\.com/module:\\ directory\\ \"/home/user/go/pkg/mod/example\\.com/module@v1\\.0\\.0\"\\ not\\ found",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The module cache is missing the required version directory, possibly due to a corrupted cache or incomplete download.",
  "root_cause_type": "generic",
  "root_cause_zh": "模块缓存缺少所需的版本目录，可能是由于缓存损坏或下载不完整。",
  "versions": [
    {
      "version": "1.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.13",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.14",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.15",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "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"
    },
    {
      "version": "1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Manually creating the directory and copying files",
      "why_fails": "The module cache is managed by Go; manual creation leads to checksum mismatches and broken references.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Setting GOMODCACHE to a different path without clearing old cache",
      "why_fails": "The new path may not have the required module; the error persists if the module is not downloaded there.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Run 'go clean -modcache' and then 'go mod download'",
      "success_rate": 0.95,
      "how": "go clean -modcache && go mod download",
      "condition": "",
      "sources": []
    },
    {
      "action": "Run 'go mod tidy' to re-download and verify all dependencies",
      "success_rate": 0.9,
      "how": "go mod tidy",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}