rust-lang / rust-lang/rustup

Check disk free space ahead of time when updating toolchains

Open
#4,653 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Problem you are trying to solve

Currently, when the disk free space is low (still usable, but not enough for the old toolchain and new toolchain to coexist), the update proceeds, then when using up all remaining space, it rolls back.

Solution you'd like

This processed could be enhanced to estimating remaining space a head of time, and failing and prompting user early.

Notes

No response

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

No files, tests, or entry points are named. Start by tracing the toolchain update and rollback flow, then identify how available disk space and toolchain sizes can be determined before the update; done means low-space updates fail with a user-facing prompt before consuming the remaining space.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.