{
  "id": "go/grpc-protobuf-import-error",
  "signature": "panic: proto: file \"common.proto\" is already registered",
  "signature_zh": "恐慌：proto：文件 \"common.proto\" 已注册",
  "regex": "panic:\\ proto:\\ file\\ \"common\\.proto\"\\ is\\ already\\ registered",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The same .proto file is being imported and registered multiple times, often due to circular imports or duplicate imports.",
  "root_cause_type": "generic",
  "root_cause_zh": "同一个 .proto 文件被多次导入和注册，通常是由于循环导入或重复导入。",
  "versions": [
    {
      "version": "1.30.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Ensure each .proto file is imported only once in the dependency graph; use go module to manage dependencies.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use protoc with --go_opt=paths=source_relative to avoid duplicate registration.",
      "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-03-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}