Closed LucasPickering closed 6 years ago
This is the failing system call:
rename("/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/etc", "/usr/local/rustup/tmp/i6j4hyab3re29l9q_dir/bk") = -1 EXDEV (Invalid cross-device link)
It looks like rustup assumes that the rustup directory is the same filesystem which won't be the case in this image since parts of it are on a different layer. I'll file an issue upstream with rustup to fall back to copying if renaming fails.
Ah, this has already been filed: https://github.com/rust-lang-nursery/rustup.rs/issues/1239.
I'm going go close this in favor of that issue!
Great, thanks for finding that!
Had the same problem when calling rustup update
on a separate row/RUN when building in docker.
Including rustup update
on the same row seemed to resolve the issue:
RUN curl --proto '=https' --tlsv1.2 -sSf curl https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && rustup update
I've been seeing this error appear when trying to run
rustup update
inside the image (this has been happening as long as I've been using the image - about a month now).This is running on the latest version of the image (
50ee35398401
, from 2018-09-30 when I pulled).