From 5ac310263d612921719d444fcdcc7fe1b16aeea5 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Fri, 4 Apr 2025 22:04:38 -0400 Subject: [PATCH] Add missing `apt-get update` in CI `test` job The CI `test` job's "Setup dependencies" step had `apt-get install` without having previously run `apt-get update`. This often does not work, and in a CI environment one should not typically expect it to work because package indexes in a virtual machine just provisioned from an image, if present at all, may be very outdated. But for some reason it had been working until recently, when breakages were observed, including in #1924 (though the breakage is not related to the changes in that PR). This runs `apt-get update` before `apt-get install` in that CI job, as had already been done in the other CI jobs and as had likely always been intended. This should make the "Setup dependencies" step work again. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5c58d4e01a..726ca26243e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -133,7 +133,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - name: Setup dependencies - run: sudo apt-get install -y --no-install-recommends liblzma-dev + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends liblzma-dev - uses: extractions/setup-just@v3 - uses: taiki-e/install-action@v2 with: