Closed
Description
Originated in rust-lang/docker-rust#37
rustfmt
and clippy
components are widely used tools by many projects. However, there is some friction with using them on CI and dockerized environments:
- Docker image doesn't contain them, so we need to run
rustup add component rustfmt
any time we're using Docker image for that purpose. On CIs it just unnecessarily increases network activity. In CLI usage it becomes trickier asdocker run --rm -v "$(pwd)":/app -w /app rust:1.31 cargo fmt
just fails. - More confusion comes when we cannot even pre-install
rustfmt
/clippy
on nightly.
The motivation of official Rust Docker images is to follow upstream tools as mush as possible without providing difference with official installations. As the result, these issues make people to workaround/hack or come up with their own Docker images.
Can we somehow provide a smoother experience?
Metadata
Metadata
Assignees
Labels
No labels