Repository navigation
Description
What happened
A solo consumer (devkit 1.18.0, --mode direnv --workflow trunk, CI on self-hosted k3s ARC pods) adopted devkit
from the README and docs/SOLO_ADOPTION.md and ended up depending on podman and the devkit image, although
direnv mode needs neither:
-
README "Requirements" lists VS Code, the Dev Containers extension and Podman/Docker, and says "That's it!".
The fact that direnv runs without Docker/Podman (nix, jq, rsync) only appears as a comment inside a later
code block. -
The one-line install defaults to
both, so a Nix user who doesn't pass--modegets.devcontainer/and a
container-runtime preflight. -
docs/SOLO_ADOPTION.mdrecommends--mode devcontainerand mentionsdirenvonly as an aside. -
1.18.0's installer refuses to run without podman/docker even for
--mode direnv(fixed on dev by fix(install): scaffold direnv mode on the host without a container #1873,
unreleased). Its drift job needs docker (direnv mode still needs Docker: ci.yml's Scaffold Drift job re-scaffolds inside ghcr.io/vig-os/devcontainer via docker #1861 / fix(ci): run scaffold drift through nix in direnv mode #1870, unreleased). So today the only container-free route is
runningassets/init-workspace.shfrom the flake source by hand, withTEMPLATE_DIR,VERSION_FILEand
WORKSPACE_DIRset, and that route isn't documented. -
rsync is a host prerequisite, although
init-workspace.shneeds it and the point of direnv mode is a
Nix-provided toolchain. Neither the devkit toolchain (mkProjectShell) nor devkit's own dev shell (which fix(install): scaffold direnv mode on the host without a container #1873
runs the renderer in) includes it, so a container-free render works on a dev machine with/usr/bin/rsyncand
then fails on a Nix-only CI pod (rsync: command not found). We now shippkgs.rsyncin ourextraPackages.
The behaviour fixes are on dev, except rsync, which belongs in the devkit dev shell and the toolchain. What's left is the docs: setup and discovery should make the split clear before
the user picks a mode.
Expected
- README "Requirements" split by delivery mode:
- devcontainer / both: VS Code + Dev Containers + podman/docker;
- direnv: nix (+ direnv), jq, rsync, and no container runtime.
- The install docs say plainly which modes need a container runtime, in CI as well as locally (Scaffold Drift,
devkit-upgrade.yml), and from which release on direnv is fully container-free. SOLO_ADOPTION.mdpresentsdirenvas an equal choice (Nix hosts, self-hosted/k8s runners where the pod
already is the container), not an aside.- Optional: in the release notes for the first release that ships fix(ci): run scaffold drift through nix in direnv mode #1870 and fix(install): scaffold direnv mode on the host without a container #1873, a short note for 1.18.0 direnv
consumers that they can dropDEVKIT_DRIFT_CHECK=falseand any podman-based workarounds.
Activity