ci: install mkosi from upstream git tag, not PyPI
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user