{
  "id": "go/package-not-in-goroot",
  "signature": "package net/http is not in GOROOT (/usr/local/go/src/net/http)",
  "signature_zh": "包 net/http 不在 GOROOT 中",
  "regex": "package\\ net/http\\ is\\ not\\ in\\ GOROOT\\ \\(/usr/local/go/src/net/http\\)",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The Go standard library package is missing from the GOROOT directory, possibly due to a corrupted installation or wrong GOROOT.",
  "root_cause_type": "generic",
  "root_cause_zh": "Go 标准库包从 GOROOT 目录中丢失，可能是由于安装损坏或错误的 GOROOT。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Setting GOROOT to a different Go installation.",
      "why_fails": "If the new GOROOT also lacks the package, the error persists.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Reinstalling only the missing package manually.",
      "why_fails": "Go standard library is monolithic; individual packages cannot be reinstalled separately.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Reinstall Go completely to restore missing standard library files.",
      "success_rate": 0.95,
      "how": "Download the official Go distribution from golang.org and reinstall.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check and set GOROOT correctly if using multiple Go versions.",
      "success_rate": 0.85,
      "how": "Run 'go env GOROOT' to see current value, then set 'export GOROOT=/usr/local/go' (or correct path) if misconfigured.",
      "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-10-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}