Skip to content

fix(workspace): forward workflow to mkProjectShell only when accepted - #1252

Merged
c-vigo merged 4 commits into
release/1.4.1from
bugfix/1249-guard-workflow-forwarding
Jul 22, 2026
Merged

c-vigo merged 4 commits into
release/1.4.1from
bugfix/1249-guard-workflow-forwarding

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

The scaffolded flake.nix forwards the new workflow argument (#1224) unconditionally, but its vigos input deliberately floats on the default branch — so until 1.4.1 promotes, a fresh scaffold resolves devkit main (1.4.0) and dies on first shell entry with called with unexpected argument 'workflow'. This is what broke devkit-smoke-test PR #288's Direnv Smoke jobs and the smoke rc1 dispatch, deadlocking the promote precondition.

The call site now gates inherit workflow; behind builtins.functionArgs vigos.lib.mkProjectShell ? workflow via optionalAttrs, so older builders degrade to their gitflow default instead of failing eval. All template comments preserved; upgrades were never affected (flake.nix is scaffold-once).

Closes #1249
Refs #1249

Verification

  • TDD: guard asserted red-first in tests/test_workflow_model.py
  • tests/test_workflow_model.py 22/22, test_scaffold_lint.py + test_flake_hooks.py + test_downstream_flake.py green; full pre-commit suite green (51 hooks)
  • Live proof: fixed template + .vig-os DEVKIT_WORKFLOW=trunk enters the shell against BOTH github:vig-os/devkit (main = 1.4.0, previously fatal) and ?ref=1.4.1-rc1
  • Smoke-test PR chore(ci): bump commit-action pins to v0.1.5 #288 Direnv Smoke going green on the rc2 respin is the final live gate

c-vigo added 4 commits July 22, 2026 15:09
… restructure

The #1167 activate_flake_hooks_default awk anchors on the template's
extraPackages line at its exact indentation; the #1249 guard restructure
re-indented the mkProjectShell attrset 10->12 spaces, so the insert
silently no-opped and direnv scaffolds lost their generated hooks
(caught by the init-workspace bats e2e in PR CI).

Refs: #1249
@c-vigo
c-vigo merged commit b907acd into release/1.4.1 Jul 22, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1249-guard-workflow-forwarding branch July 22, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant