Closed
Description
On rustup 1.16.0
it was possible to override CARGO_HOME
to change Cargo's cache directory, since rustup 1.17.0
this has stopped working and rustup
complains about not being installed under the overridden CARGO_HOME
directory:
> docker run --rm -e 'CARGO_HOME=target/cargo' nemo157/rustup@sha256:cc47026867f4dade98fdaa6aa385732ad3feaf04cb56c3b9a363be70c196c1e0 sh -c 'rustup --version && rustup update stable && cargo +stable --version'
rustup 1.16.0 (beab5ac2b 2018-12-06)
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2019-02-28, rust version 1.33.0 (2aa4c46cf 2019-02-28)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
stable-x86_64-unknown-linux-gnu installed - rustc 1.33.0 (2aa4c46cf 2019-02-28)
cargo 1.33.0 (f099fe94b 2019-02-12)
> docker run --rm -e 'CARGO_HOME=target/cargo' nemo157/rustup@sha256:0d85c5b353b6674357db5b302e43a67c9705b7095f8128a7e59264e532644878 sh -c 'rustup --version && rustup update stable && cargo +stable --version'
rustup 1.17.0 (069c88ed6 2019-03-05)
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2019-02-28, rust version 1.33.0 (2aa4c46cf 2019-02-28)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
error: rustup is not installed at '/target/cargo'
stable-x86_64-unknown-linux-gnu installed - rustc 1.33.0 (2aa4c46cf 2019-02-28)