go
io_error
ai_generated
true
go: 写入 go.sum 时出错:设备上没有剩余空间
go: writing go.sum: no space left on device
ID: go/insufficient-disk-space
80%修复率
85%置信度
0证据数
2024-05-10首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 1.16 | active | — | — | — |
| 1.23 | active | — | — | — |
根因分析
磁盘已满,阻止 Go 写入模块缓存或 go.sum 文件。
English
The disk is full, preventing Go from writing module cache or go.sum files.
解决方案
-
80% 成功率
go clean -modcache
-
70% 成功率
Use 'df -h' to identify large files and delete them
无效尝试
常见但无效的做法:
-
40% 失败
May delete important files or not free enough space for the module cache.
-
50% 失败
If the new location is also full, the error persists.