# go: 写入 go.sum 时出错：设备上没有剩余空间

- **ID:** `go/insufficient-disk-space`
- **领域:** go
- **类别:** io_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

磁盘已满，阻止 Go 写入模块缓存或 go.sum 文件。

## 版本兼容性

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

## 解决方案

1. **** (80% 成功率)
   ```
   go clean -modcache
   ```
2. **** (70% 成功率)
   ```
   Use 'df -h' to identify large files and delete them
   ```

## 无效尝试

- **** — May delete important files or not free enough space for the module cache. (40% 失败率)
- **** — If the new location is also full, the error persists. (50% 失败率)
