You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nix-dev discovery image can go stale: dev push trigger only watches flake files #1236
nix-image.yml is the lane that keeps the mutable ghcr.io/vig-os/devcontainer:nix-dev tag (plus -amd64/-arm64 and the multi-arch index) tracking dev. Its push trigger is path-filtered:
But the image content is not a function of flake.nix/flake.lock alone — the flake bakes repo content that lives outside those paths (workspace scaffold assets, scripts/, home/config fragments). A dev push that changes only those files changes the image without rebuilding or repushing nix-dev, so the discovery tag silently drifts behind dev.
Steps to Reproduce
Land a change on dev that touches baked content but not flake.nix/flake.lock (e.g. a scaffold asset under the assets tree or a script in scripts/).
Observe no Nix Image (discovery) run is triggered.
ghcr.io/vig-os/devcontainer:nix-dev still serves the previous build; anyone pulling it to try the dev-branch change doesn't get it.
Expected Behavior
nix-dev is a trustworthy rolling image of dev: every push that can affect the image rebuilds, tests (portable testinfra + runtime smoke, both arches), and repushes the tag.
Actual Behavior
Only flake-file pushes rebuild it; other image-affecting pushes leave the tag stale with no signal.
Possible Solution
Widen (or drop) the paths: filter on the dev push trigger. Given the flake copies repo content at build time, a precise allowlist is fragile — the simplest robust option is to drop the filter for dev and let Cachix/eval caching keep no-op rebuilds cheap. Alternatively enumerate the baked source paths next to the flake outputs they feed so the filter has an SSoT.
Scope note (from the nightly-build investigation, 2026-07-21): the decision is to keep nix-dev as the only rolling/dev tag — no scheduled nightly build and no nightly alias tag. The flake is fully pinned, so a cron rebuild of an unchanged dev adds nothing; correctness of the event-driven trigger is the whole fix.
Fixed on dev via PR #1242 (merge commit 79b018a): dropped the nix-image.yml dev push paths filter — the image bakes assets/, docs/MIGRATION.md, packages/vig-utils, nix/home and scripts/, so an allowlist was inherently drifty. Every dev push now rebuilds nix-dev; Cachix keeps no-op rebuilds cheap. Ships with 1.4.1.
Activity
ci: drop nix-image dev push paths filter so nix-dev tracks dev
ci: drop nix-image dev push paths filter so nix-dev tracks dev (#1242)
c-vigo commentedon Jul 21, 2026
Fixed on dev via PR #1242 (merge commit 79b018a): dropped the nix-image.yml dev push paths filter — the image bakes assets/, docs/MIGRATION.md, packages/vig-utils, nix/home and scripts/, so an allowlist was inherently drifty. Every dev push now rebuilds nix-dev; Cachix keeps no-op rebuilds cheap. Ships with 1.4.1.
ci: cancel superseded nix-image builds per ref (#1251)
chore: release 1.4.1 (#297)
chore: release 1.4.1 (#1247)