{
  "id": "go/go-mod-file-permission-denied",
  "signature": "go: writing go.sum: open /path/to/go.sum: permission denied",
  "signature_zh": "go: 写入 go.sum: 打开 /path/to/go.sum: 权限被拒绝",
  "regex": "go:\\ writing\\ go\\.sum:\\ open\\ /path/to/go\\.sum:\\ permission\\ denied",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "The user does not have write permission to the go.sum file or the directory containing it, often in read-only file systems or CI environments.",
  "root_cause_type": "generic",
  "root_cause_zh": "用户没有 go.sum 文件或其所在目录的写权限，通常在只读文件系统或 CI 环境中出现。",
  "versions": [
    {
      "version": "1.14",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This may change file ownership and cause later permission issues in CI or shared environments.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This is a security risk and may be reverted by version control systems.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Ensure the current user owns the directory: 'chown -R $USER:$USER /path/to/project' or run 'go mod tidy' in a writable location.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "In CI, set the working directory to a writable path and copy go.mod/go.sum there.",
      "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-09-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}