rust-lang / docker-rust

The official Docker images for Rust
436 stars 88 forks source link

rust:1.42.0-slim tries to download nightly components #59

Closed jplatte closed 4 years ago

jplatte commented 4 years ago

From my GitLab CI log:

 Pulling docker image rust:1.42.0-slim ...
Using docker image sha256:446639396ccf372322506e8d98d1c88aa6f05b2c9e29e6bd593f24cfebd88232 for rust:1.42.0-slim ...

...

 $ rustup component add clippy
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2020-03-20, rust version 1.44.0-nightly (f4c675c47 2020-03-19)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'
error: component 'clippy' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel nightly
Sometimes not all components are available in any given nightly.
ERROR: Job failed: exit code 1

The same happened with rust:latest recently, which is why I switched to rust:1.42.0-slim. I would really appreciate if this could be looked into.

sfackler commented 4 years ago

I cannot replicate this:

$ docker run -it --rm rust:1.42.0-slim
Unable to find image 'rust:1.42.0-slim' locally
1.42.0-slim: Pulling from library/rust
68ced04f60ab: Pull complete
0b01ffaccb34: Pull complete
Digest: sha256:d7bb10f560dfe4d2bd6a79fe148ccfd2879339a742ab3903c4816a3c7a276578
Status: Downloaded newer image for rust:1.42.0-slim
root@ccc3d2856ff9:/# rustup component add clippy
info: downloading component 'clippy'
info: installing component 'clippy'

You seem to have a rustup override configured to use nightly, maybe via a rust-toolchain file.

jplatte commented 4 years ago

You're right, sorry :man_facepalming:

Nice to know everything (that can be expected to work) works with a rust-toolchain file + any of the docker images, I wouldn't have expected that.