emk / rust-musl-builder

Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.
Apache License 2.0
1.54k stars 193 forks source link

Update to stable rust v1.29 #55

Closed iddm closed 5 years ago

iddm commented 6 years ago

Please update the image so that it contains rust 1.29.

Also, how do I simply update one in my own image? When I try I have this:

root@0549b9ea95aa:/home/rust# su rust
rust@0549b9ea95aa:~$ .cargo/bin/rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2018-09-13, rust version 1.29.0 (aa3ca1994 2018-09-11)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rust-std' for 'armv7-unknown-linux-musleabihf'
info: downloading component 'rust-std' for 'x86_64-unknown-linux-musl'
info: removing component 'rustc'
info: rolling back changes
error: could not rename component file from '/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends' to '/home/rust/.rustup/tmp/rio5q73mj8clfll6_dir/bk'
info: checking for self-updates

  stable-x86_64-unknown-linux-gnu update failed - rustc 1.28.0 (9634041f0 2018-07-30)

warning: tool `rustfmt` is already installed, remove it from `/home/rust/.cargo/bin`, then run `rustup update` to have rustup manage this tool.
warning: tool `cargo-fmt` is already installed, remove it from `/home/rust/.cargo/bin`, then run `rustup update` to have rustup manage this tool
emk commented 5 years ago

Generally speaking, I update within a day or so of a Rust release, but please let me know if I miss one! We should currently support 1.29.1.