{
  "id": "go/go-build-no-buildable-go-source",
  "signature": "go: no buildable Go source files in /path/to/dir",
  "signature_zh": "go: /path/to/dir 中没有可构建的 Go 源文件",
  "regex": "go:\\ no\\ buildable\\ Go\\ source\\ files\\ in\\ /path/to/dir",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The directory specified for go build contains no .go files, or all .go files have build constraints that exclude them on the current platform.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的 go build 目录中没有 .go 文件，或所有 .go 文件都包含排除当前平台的构建约束。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the package name does not match the directory or has no exports, it may still fail to build.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Renaming directories can break imports and module paths.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Check for build tags: 'go build -tags=yourtag' if files have constraints.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Ensure the directory contains at least one .go file with a package statement; if not, move files or adjust the build command.",
      "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-10-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}