From 488a0d10529ca4cb529ffc04170025b1f2ff48a3 Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 18 Apr 2026 13:44:51 -0400 Subject: [PATCH] ci: install mkosi from upstream git tag, not PyPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous commit pinned mkosi==24.3 via pip but mkosi isn't published on PyPI past ancient versions — the runner hit "Could not find a version that satisfies the requirement mkosi==24.3". Install from the upstream git tag v24.3 instead; added git to the apt dep list for pip's VCS fetch. Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/e2e.yml | 5 +++-- .gitea/workflows/release.yml | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/e2e.yml b/.gitea/workflows/e2e.yml index c214aa3..f4ff79a 100644 --- a/.gitea/workflows/e2e.yml +++ b/.gitea/workflows/e2e.yml @@ -38,12 +38,13 @@ jobs: sudo apt-get install -y --no-install-recommends \ debootstrap squashfs-tools \ systemd-ukify systemd-boot kmod \ - debian-archive-keyring python3-pip zstd \ + debian-archive-keyring python3-pip git zstd \ qemu-system-x86 qemu-utils \ dnsmasq iperf3 ipxe-qemu # See release.yml for rationale — Ubuntu's apt mkosi is too old # to handle bookworm's non-free-firmware component correctly. - sudo pip install --break-system-packages mkosi==24.3 + sudo pip install --break-system-packages \ + "git+https://github.com/systemd/mkosi.git@v24.3" - name: Install templ run: go install github.com/a-h/templ/cmd/templ@v0.3.1001 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 3b60d01..0741774 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -35,12 +35,13 @@ jobs: sudo apt-get install -y --no-install-recommends \ debootstrap squashfs-tools dosfstools \ systemd-ukify systemd-boot kmod \ - debian-archive-keyring python3-pip zstd + debian-archive-keyring python3-pip git zstd # Ubuntu's apt-packaged mkosi is too old to wire # non-free-firmware shorthand through to debootstrap. - # Install a pinned recent version directly; mkosi is - # pure-Python so --break-system-packages is harmless here. - sudo pip install --break-system-packages mkosi==24.3 + # mkosi isn't published on PyPI under v24+ — install the + # pinned tag from upstream git instead. + sudo pip install --break-system-packages \ + "git+https://github.com/systemd/mkosi.git@v24.3" - name: Install templ run: go install github.com/a-h/templ/cmd/templ@v0.3.1001