{
  "id": "go/grpc-missing-proto-import",
  "signature": "error: could not import \"google/protobuf/timestamp.proto\": file not found",
  "signature_zh": "错误：无法导入 \"google/protobuf/timestamp.proto\"：文件未找到",
  "regex": "error:\\ could\\ not\\ import\\ \"google/protobuf/timestamp\\.proto\":\\ file\\ not\\ found",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The .proto file imports a dependency that is not in the protoc include path, causing compilation to fail.",
  "root_cause_type": "generic",
  "root_cause_zh": ".proto 文件导入的依赖不在 protoc 的包含路径中，导致编译失败。",
  "versions": [
    {
      "version": "1.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Copy the timestamp.proto file into the same directory",
      "why_fails": "It may conflict with the system-wide protobuf installation and cause version mismatches.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Remove the import and use a custom timestamp field",
      "why_fails": "This changes the API and may break compatibility.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the protobuf include path to protoc",
      "success_rate": 0.9,
      "how": "protoc -I=. -I=/usr/include your.proto",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a dependency manager like Buf",
      "success_rate": 0.85,
      "how": "buf generate",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}