summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-07-26 17:53:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-26 22:20:37 (GMT)
commit8231c841ff7f213a86aa1fa890ea213f2dc630be (patch)
tree831f34159b12b30b518a16889af8e9e7b29d2154 /.github
parente61059660ca00ba69d1721b7d48653c52848bece (diff)
downloadgit-8231c841ff7f213a86aa1fa890ea213f2dc630be.zip
git-8231c841ff7f213a86aa1fa890ea213f2dc630be.tar.gz
git-8231c841ff7f213a86aa1fa890ea213f2dc630be.tar.bz2
ci: run "apt-get update" before "apt-get install"
The "sparse" workflow runs "apt-get install" to pick up a few necessary packages. But it needs to run "apt-get update" first, or it risks trying to download an old package version that no longer exists. And in fact this happens now, with output like: 2021-07-26T17:40:51.2551880Z E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4-openssl-dev_7.68.0-1ubuntu2.5_amd64.deb 404 Not Found [IP: 52.147.219.192 80] 2021-07-26T17:40:51.2554304Z E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Our other ci jobs don't suffer from this; they rely on scripts in ci/, and ci/install-dependencies does the appropriate "apt-get update". Signed-off-by: Jeff King <peff@peff.net> Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1b5c039..0187888 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -368,6 +368,7 @@ jobs:
run: sudo dpkg -i sparse-20.04/sparse_*.deb
- name: Install other dependencies
run: |
+ sudo apt-get update -q &&
sudo apt-get install -q -y libssl-dev libcurl4-openssl-dev libexpat-dev gettext zlib1g-dev
- uses: actions/checkout@v2
- run: make sparse