go io_error ai_generated true

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

go: writing go.sum: no space left on device

ID: go/insufficient-disk-space

其他格式: JSON · Markdown 中文 · English
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.

generic

解决方案

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

无效尝试

常见但无效的做法:

  1. 40% 失败

    May delete important files or not free enough space for the module cache.

  2. 50% 失败

    If the new location is also full, the error persists.