{
  "id": "go/module-not-found-in-go-path",
  "signature": "go: module github.com/user/private-repo@v1.0.0: reading https://proxy.golang.org/github.com/user/private-repo/@v/v1.0.0.info: 404 Not Found",
  "signature_zh": "go: 模块 github.com/user/private-repo@v1.0.0: 读取 https://proxy.golang.org/github.com/user/private-repo/@v/v1.0.0.info: 404 Not Found",
  "regex": "go: module .*: reading https://proxy\\.golang\\.org/.*: 404 Not Found",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "Go proxy (proxy.golang.org) cannot find the module version, either because the module is private and not accessible via the default proxy, or the version tag does not exist in the repository.",
  "root_cause_type": "generic",
  "root_cause_zh": "Go 代理 (proxy.golang.org) 找不到该模块版本，可能是因为模块是私有的且无法通过默认代理访问，或者版本标签在仓库中不存在。",
  "versions": [
    {
      "version": "go1.17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Tidy doesn't bypass proxy; it still queries the same proxy URL which returns 404.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is about module retrieval (404), not checksum verification.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set GONOSUMCHECK and GONOSUMDB, then use `GONOSUMCHECK=* GONOSUMDB=* GOPROXY=direct go get github.com/user/private-repo@v1.0.0` to bypass the proxy entirely.",
      "success_rate": 0.85,
      "how": "Set GONOSUMCHECK and GONOSUMDB, then use `GONOSUMCHECK=* GONOSUMDB=* GOPROXY=direct go get github.com/user/private-repo@v1.0.0` to bypass the proxy entirely.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the repo is private, configure git with a personal access token: `git config --global url.\"https://${GITHUB_TOKEN}:x-oauth-basic@github.com/\".insteadOf \"https://github.com/\"` then set `GOPRIVATE=github.com/user/private-repo`.",
      "success_rate": 0.9,
      "how": "If the repo is private, configure git with a personal access token: `git config --global url.\"https://${GITHUB_TOKEN}:x-oauth-basic@github.com/\".insteadOf \"https://github.com/\"` then set `GOPRIVATE=github.com/user/private-repo`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set GONOSUMCHECK and GONOSUMDB, then use `GONOSUMCHECK=* GONOSUMDB=* GOPROXY=direct go get github.com/user/private-repo@v1.0.0` to bypass the proxy entirely.",
    "If the repo is private, configure git with a personal access token: `git config --global url.\"https://${GITHUB_TOKEN}:x-oauth-basic@github.com/\".insteadOf \"https://github.com/\"` then set `GOPRIVATE=github.com/user/private-repo`."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://go.dev/ref/mod#private-modules",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-06-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}