Skip to content

Commit

Permalink
Merge #424
Browse files Browse the repository at this point in the history
424: Rework pre installed tools in the devcontainer r=jonasbb a=jonasbb

clippy in the nightly version comes in handy to run more lints and be
able to debug the recurring nightly problems.
cargo-tarpaulin is quite heavy to build and not that often needed, so
it can be omitted and installed on demand.
Install crates with `--locked` to avoid potential breakage.

bors merge

Co-authored-by: Jonas Bushart <jonas@bushart.org>
  • Loading branch information
bors[bot] and jonasbb committed Apr 6, 2022
2 parents e4681d5 + 8264ee5 commit 05e9bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ FROM mcr.microsoft.com/vscode/devcontainers/rust:0-${VARIANT}
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends lld python3-pip \
&& rustup update \
&& rustup toolchain install nightly --profile minimal --component rustfmt \
&& rustup toolchain install nightly --profile minimal --component clippy,rustfmt \
&& pip3 install --user --no-cache-dir pre-commit
COPY config /root/.cargo/config
RUN cargo install bacon cargo-readme cargo-tarpaulin \
RUN cargo install --locked bacon cargo-readme \
&& rm -rf ~/.cargo/registry

0 comments on commit 05e9bb5

Please sign in to comment.