fix: docker installs from Docker, never brew; VM guest rows

The docker-ce, buildx and compose rows named apt packages that only exist in
Docker's own repository, so on stock Ubuntu they fell through to brew. They
are a script channel now: get.docker.com downloaded to the run's workdir and
run from the file on Linux, Docker Desktop's DMG installer on macOS. One
install serves all three rows; the plugin rows report its outcome.

Also adds virt/guest-agent and virt/spice-vdagent, with tests and README.
This commit is contained in:
bcherb2 committed 2026-11-18 01:41:43 -05:00
1 parent a28a831a14
commit a538ab75dd
7 files changed
+365 -31

No files matched your search

+12 -1
View File
@@ -8,7 +8,8 @@
# FAKE_BOOT_PW the password that gets a 200; anything else gets a 401
# FAKE_BOOT_CODE force a code (404, 000, 500 ...) whatever the password
# FAKE_BWS_SUMS match (default) | mismatch | absent
# FAKE_FAIL=curl:deb | curl:chezmoi | curl:fzf fail just that one download
# FAKE_FAIL=curl:deb | curl:chezmoi | curl:fzf | curl:docker
# fail just that one download
_fb=$(dirname "$0") # the fakebin directory
url=; out=; prev=; readcfg=0
@@ -46,6 +47,16 @@ case $url in
installer chezmoi "\$HOME/.local/bin"; exit 0 ;;
*astral.sh/uv/install.sh*)
installer uv "\$HOME/.local/bin"; exit 0 ;;
*get.docker.com*)
# The vendor's convenience script. It installs the engine and both plugins
# in one pass, so the stand-in drops a single `docker` fake -- `docker
# buildx` and `docker compose` are subcommands of that binary, not separate
# ones. Through emit, because the caller downloads this to a file and runs
# the file rather than feeding it to a shell through a pipe: POSIX sh has no
# pipefail, so the pipe form cannot tell a failed download from a good one.
# FAKE_FAIL=curl:docker is that download failing.
[ "$mode" = docker ] && exit 22
installer docker "\$HOME/.local/bin" | emit; exit 0 ;;
*go.dev/VERSION*)
echo go1.99.0; exit 0 ;;
*api.github.com*)
+13 -5
View File
@@ -31,6 +31,10 @@
# saves the other thirty.
# FAKE_FAIL=npm:batch the same shape for npm.
# FAKE_FAIL=curl:deb curl fails only for the .deb download.
# FAKE_FAIL=curl:docker curl fails only for the get.docker.com script.
# That is how the docker group's failure path is
# reached: one note_fail, nothing executed, and
# the other two rows reported as not attempted.
#
# Several may be combined: FAKE_FAIL=brew,apt-get:batch
set -u
@@ -79,15 +83,19 @@ apt-cache)
#
# gh genuinely absent -- `apt-cache policy` prints nothing. The
# manifest's real example of a name that falls through to brew.
# docker-ce present in the cache but with `Candidate: (none)`, because
# something else Conflicts/Replaces it. `apt-cache show` exits
# 0 for this, which is why the old probe kept it in the batch
# and let apt refuse all thirty packages at once.
# nvidia-container-toolkit
# present in the cache but with `Candidate: (none)`: it is
# published from NVIDIA's own repository, which nothing here
# configures. `apt-cache show` exits 0 for this, which is why
# the old probe kept it in the batch and let apt refuse all
# thirty packages at once. (docker-ce used to be this example;
# the docker rows install from get.docker.com now and never
# reach apt at all, so the live case is NVIDIA's.)
case ${1:-} in
policy)
case ${2:-} in
gh) exit 0 ;;
docker-ce) printf '%s:\n Installed: (none)\n Candidate: (none)\n' "$2"; exit 0 ;;
nvidia-container-toolkit) printf '%s:\n Installed: (none)\n Candidate: (none)\n' "$2"; exit 0 ;;
esac
printf '%s:\n Installed: (none)\n Candidate: 1.0-fake\n' "$2"; exit 0 ;;
esac