Skip to content

Commit e2aa307

Browse files
committed
Install and prepare Clippy on all channels
1 parent 16554c7 commit e2aa307

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

compiler/base/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- \
4545
--profile minimal \
4646
--default-toolchain "${channel}" \
4747
--target wasm32-unknown-unknown \
48-
--component rustfmt
48+
--component rustfmt \
49+
--component clippy
4950

5051
COPY --chown=playground entrypoint.sh /playground/tools/
5152

@@ -109,6 +110,7 @@ ARG channel
109110

110111
RUN cargo build
111112
RUN cargo build --release
113+
RUN cargo clippy
112114
RUN rm src/*.rs
113115

114116
COPY --from=modify-cargo-toml /playground/modify-cargo-toml/target/release/modify-cargo-toml /playground/.cargo/bin

compiler/clippy/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
ARG base_image=shepmaster/rust-nightly
22
FROM ${base_image}
33

4-
RUN rustup component add clippy
5-
6-
RUN touch src/lib.rs
7-
RUN cargo clippy
8-
RUN rm src/*.rs
4+
# The base image takes care of all this for now
95

106
ENTRYPOINT ["/playground/tools/entrypoint.sh"]

0 commit comments

Comments
 (0)