{
  "id": "go/go-mod-vendor-permission-error",
  "signature": "go: cannot find module providing package github.com/foo/bar: module lookup disabled by GOPROXY=off",
  "signature_zh": "go: 找不到提供包 github.com/foo/bar 的模块：GOPROXY=off 已禁用模块查找",
  "regex": "go:\\ cannot\\ find\\ module\\ providing\\ package\\ github\\.com/foo/bar:\\ module\\ lookup\\ disabled\\ by\\ GOPROXY=off",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "When GOPROXY=off and the module is not in the vendor directory, the go command cannot resolve the package.",
  "root_cause_type": "generic",
  "root_cause_zh": "当 GOPROXY=off 且模块不在 vendor 目录中时，go 命令无法解析该包。",
  "versions": [
    {
      "version": "1.13",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "GOPROXY=off overrides this flag; module downloads are still blocked.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This is not compatible with module mode and can cause import path mismatches.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Set GOPROXY to a valid proxy or direct, then run 'go mod download' or 'go mod vendor'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.6,
      "how": "If offline, ensure the module is already in the module cache: 'go env GOMODCACHE' and copy from another machine.",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-11-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}