rust-lang / rust-lang/cargo

Cargo treats lack of disk space as "spurious network error"

Open
#14,964 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-diagnostics A-git A-networking C-bug S-needs-design
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

Problem

While updating .cargo/git/checkouts, if disk space runs out, cargo handles the situation as if there was a network error, and display:

warning: spurious network error (3 tries remaining): cannot extend packfile '...': Not enough disk space; class=Os (2)
Steps

No response

Possible Solution(s)

No response

Notes

Errors that are not related to the network shouldn't be treated as network errors.

Version
1.83.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing an update of .cargo/git/checkouts with insufficient disk space and trace where the resulting OS error is classified as a network error. Review Cargo's network error handling and add coverage for disk-space failures; done means non-network errors are reported without the spurious network error warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.