Skip to content

Commit e4e5c59

Browse files
committed
fix: Void Dockerfile — update xbps before installing packages
Root cause: xbps exit code 16 — 'The xbps package must be updated'. The Docker image ships with an outdated xbps that refuses to install packages from the current repo until xbps itself is updated first. Fix: xbps-install -S (sync) → xbps-install -yu xbps (update xbps) → install.
1 parent 1036b6f commit e4e5c59

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/docker/Dockerfile.void

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM voidlinux/voidlinux:latest
22

3-
# GitHub Actions: image has broken default repos.
4-
# Wipe config entirely, use --repository flag only.
3+
# GitHub Actions: image's xbps may be outdated vs the repo.
4+
# Update xbps first, then install build deps.
55
RUN rm -rf /usr/share/xbps.d \
66
&& mkdir -p /usr/share/xbps.d \
7-
&& xbps-install -Sy --repository=https://repo-default.voidlinux.org/current \
8-
base-devel curl git cmake nodejs python3 cargo bash \
7+
&& echo 'repository=https://repo-default.voidlinux.org/current' > /usr/share/xbps.d/00-repository-main.conf \
8+
&& xbps-install -S \
9+
&& xbps-install -yu xbps \
10+
&& xbps-install -y base-devel curl git cmake nodejs python3 cargo bash \
911
&& rm -rf /var/cache/xbps/*
1012

1113
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)