{
  "id": "go/read-only-file-system",
  "signature": "go: creating module cache directory: mkdir /go/pkg/mod: read-only file system",
  "signature_zh": "go: 创建模块缓存目录：mkdir /go/pkg/mod: 只读文件系统",
  "regex": "go:\\ creating\\ module\\ cache\\ directory:\\ mkdir\\ /go/pkg/mod:\\ read\\-only\\ file\\ system",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "The Go module cache directory is on a read-only file system, often in containerized environments.",
  "root_cause_type": "generic",
  "root_cause_zh": "Go 模块缓存目录位于只读文件系统上，常见于容器化环境。",
  "versions": [
    {
      "version": "1.13",
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the file system is truly read-only (e.g., squashfs), chmod won't work.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Even root cannot write to a read-only file system unless remounted.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "GOMODCACHE=/tmp/gomodcache go mod download",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "mount -o remount,rw /go",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}