{
  "id": "go/module-lookup-directory-error",
  "signature": "go: module lookup disabled by GOPROXY=off",
  "signature_zh": "go: GOPROXY=off 已禁用模块查找",
  "regex": "go:\\ module\\ lookup\\ disabled\\ by\\ GOPROXY=off",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The GOPROXY environment variable is set to 'off', disabling all network access for module downloads, but the module is not in the local cache.",
  "root_cause_type": "generic",
  "root_cause_zh": "GOPROXY 环境变量设置为 'off'，禁用了所有模块下载的网络访问，但模块不在本地缓存中。",
  "versions": [
    {
      "version": "1.13",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The environment variable may be overridden by a .env file or Makefile; the shell change may not persist.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the module is not already vendored, go mod vendor will still attempt to download it and fail.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Set GOPROXY=https://proxy.golang.org,direct in your environment or go env -w GOPROXY=https://proxy.golang.org,direct",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "If offline, use GOFLAGS=-mod=vendor and ensure all dependencies are vendored with go mod vendor beforehand.",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}