HASH 507b209da640
DATE 2026-07-18
SUBJECT nix: builder cleans untracked debris so killed builds cannot fill the disk
FILES 1 CHANGED
HASH 507b209da640
DATE 2026-07-18
SUBJECT nix: builder cleans untracked debris
so killed builds cannot fill the disk
FILES 1 CHANGED
┌─ nix/module.nix ───────────────────────────────────────────────────────────┐
│ diff --git a/nix/module.nix b/nix/module.nix │
│ index c6d4ab4..f63189a 100644 │
│ --- a/nix/module.nix │
│ +++ b/nix/module.nix │
│ @@ -55,6 +55,9 @@ │
│ fi │
│ git -C "$src" fetch origin ${escapeShellArg cfg.branch} │
│ git -C "$src" reset --hard origin/${escapeShellArg cfg.branch} │
│ + # drop debris from killed builds (dist survives reset - untracked); │
│ + # node_modules stays, npm ci manages it │
│ + git -C "$src" clean -fdxq -e node_modules │
│ │
│ # bare mirrors for the /git pages │
│ mkdir -p "$state/mirrors" │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ nix/module.nix ─────────────────────┐
│ diff --git a/nix/module.nix b/nix/module.nix │
│ index c6d4ab4..f63189a 100644 │
│ --- a/nix/module.nix │
│ +++ b/nix/module.nix │
│ @@ -55,6 +55,9 @@ │
│ fi │
│ git -C "$src" fetch origin ${escapeSh │
│ ellArg cfg.branch} │
│ git -C "$src" reset --hard origin/${e │
│ scapeShellArg cfg.branch} │
│ + # drop debris from killed builds (dis │
│ t survives reset - untracked); │
│ + # node_modules stays, npm ci manages │
│ it │
│ + git -C "$src" clean -fdxq -e node_mod │
│ ules │
│ │
│ # bare mirrors for the /git pages │
│ mkdir -p "$state/mirrors" │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET