Skip to content

Out of space behaviour can be improved #330

@vi

Description

@vi

Tried running rustup.rs's installer with 200M limit on $HOME:

Continue? (Y/n) y

info: syncing channel updates for 'stable-i686-unknown-linux-gnu'
info: downloading component 'rustc'
41.64 MiB / 41.64 MiB (100.00%) 444.80 KiB/s ETA: 0s                 
info: downloading component 'rust-std'
54.73 MiB / 54.73 MiB (100.00%) 534.40 KiB/s ETA: 0s                 
info: downloading component 'rust-docs'
5.88 MiB / 5.88 MiB (100.00%) 774.40 KiB/s ETA: 0s                  
info: downloading component 'cargo'
3.62 MiB / 3.62 MiB (100.00%) 594.71 KiB/s ETA: 0s                  
info: installing component 'rustc'
info: rolling back changes
error: could not copy file from '/home/vi/home/rust2/.multirust/tmp/au245chz58q1gy9q_dir/rustc/lib/librustc-4fda350b.so' to '/home/vi/home/rust2/.multirust/toolchains/stable-i686-unknown-linux-gnu/lib/librustc-4fda350b.so' (No space left on device (os error 28))

I think installer should check for free disk space and warn user before continuing.

P.S. Why the file is copied, not moved or linked BTW?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions