]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA: add `apt update` where missing
authorViktor Szakats <commit@vsz.me>
Fri, 8 Nov 2024 02:17:44 +0000 (03:17 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 8 Nov 2024 09:48:11 +0000 (10:48 +0100)
To mitigate this kind of (repeat) errors:
```
Err:14 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 python3-werkzeug all 3.0.1-3ubuntu0.1
  404  Not Found [IP: 40.81.13.82 80]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/p/python-werkzeug/python3-werkzeug_3.0.1-3ubuntu0.1_all.deb
Fetched 10.4 MB in 4s (2593 kB/s)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
```
https://github.com/curl/curl/actions/runs/11732257460/job/32684111508#step:3:74

Follow-up to 842f88434f627c0330e263a3881b2d9438786b32 #15082
Closes #15519

.github/workflows/checkdocs.yml
.github/workflows/checksrc.yml

index 45910b7db8fdeee3757a8f3d57276cd6757d9e8e..28e58509050cf19b8c3ec50c50ee17dfb97d0548 100644 (file)
@@ -42,6 +42,7 @@ jobs:
   #      - name: install prereqs
   #        run: |
   #          sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
+  #          sudo apt-get update -y
   #          sudo apt-get install -y --no-install-suggests --no-install-recommends \
   #            python3-proselint
   #
index 8ecf1f4f85b1cc92b69aa256fe2f662d59765bd3..1a8d6116b1d965a8cd86271e7aab2728eb72e0b3 100644 (file)
@@ -50,12 +50,14 @@ jobs:
       - name: install
         env:
           DEBIAN_FRONTEND: noninteractive
-        run: >-
-          sudo apt-get install -y --no-install-suggests --no-install-recommends
-          codespell python3-pip python3-networkx python3-pydot python3-yaml
-          python3-toml python3-markupsafe python3-jinja2 python3-tabulate
-          python3-typing-extensions python3-libcst python3-impacket
-          python3-websockets python3-pytest &&
+        run: |
+          sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
+          sudo apt-get update -y
+          sudo apt-get install -y --no-install-suggests --no-install-recommends \
+            codespell python3-pip python3-networkx python3-pydot python3-yaml \
+            python3-toml python3-markupsafe python3-jinja2 python3-tabulate \
+            python3-typing-extensions python3-libcst python3-impacket \
+            python3-websockets python3-pytest
           python3 -m pip install --break-system-packages cmakelint==1.4.3 pytype==2024.9.13 ruff==0.6.8
 
       - name: spellcheck