Skip to content

Commit

Permalink
[fwupd] Move "apt-get update" to the same RUN before "apt-get install"
Browse files Browse the repository at this point in the history
Otherwise, a cached and outdated RUN layer may lead to install failures.
Fixes a CI failure caught by `infra/presubmit.py`.
  • Loading branch information
DaveLak committed Nov 20, 2024
1 parent a133762 commit 5f639fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/fwupd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update
RUN apt-get install -y pkg-config zlib1g-dev libffi-dev liblzma-dev libcbor-dev
RUN apt-get update && apt-get install -y pkg-config zlib1g-dev libffi-dev liblzma-dev libcbor-dev
RUN python3 -m pip install -U jinja2 packaging meson ninja
RUN git clone --depth 1 https://github.com/fwupd/fwupd.git fwupd
WORKDIR .
Expand Down

0 comments on commit 5f639fb

Please sign in to comment.