Skip to content

Include rustfmt and clippy components by default #1569

Closed
@tyranron

Description

@tyranron

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 as docker 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions