# 错误：无法导入 "google/protobuf/timestamp.proto"：文件未找到

- **ID:** `go/grpc-missing-proto-import`
- **领域:** go
- **类别:** build_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

.proto 文件导入的依赖不在 protoc 的包含路径中，导致编译失败。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.9 | active | — | — |

## 解决方案

1. **Add the protobuf include path to protoc** (90% 成功率)
   ```
   protoc -I=. -I=/usr/include your.proto
   ```
2. **Use a dependency manager like Buf** (85% 成功率)
   ```
   buf generate
   ```

## 无效尝试

- **Copy the timestamp.proto file into the same directory** — It may conflict with the system-wide protobuf installation and cause version mismatches. (50% 失败率)
- **Remove the import and use a custom timestamp field** — This changes the API and may break compatibility. (60% 失败率)
