Skip to content

Commit

Permalink
build: install sscache with '--locked' to avoid build error
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Oct 12, 2023
1 parent e4908c0 commit cccd62b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/dev-ticker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:experimental
FROM rust:1.69 as builder
RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo install sccache --no-default-features
cargo install sccache --no-default-features --locked
WORKDIR /usr/src/rollup
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
Expand Down
2 changes: 1 addition & 1 deletion docker/environment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ RUN rustup component add llvm-tools-preview
ENV ZKSYNC_HOME=/usr/src/zksync
ENV PATH="${ZKSYNC_HOME}/bin:${PATH}"
ENV CI=0
RUN cargo install sccache
RUN cargo install sccache --locked
ENV RUSTC_WRAPPER=/usr/local/cargo/bin/sccache
2 changes: 1 addition & 1 deletion docker/event-listener/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:experimental
FROM rust:1.55 as builder
RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo install sccache
cargo install sccache --locked
WORKDIR /usr/src/zksync
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
Expand Down

0 comments on commit cccd62b

Please sign in to comment.