Repository navigation
fix(workspace): forward workflow to mkProjectShell only when accepted - #1252
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The scaffolded
flake.nixforwards the newworkflowargument (#1224) unconditionally, but itsvigosinput deliberately floats on the default branch — so until 1.4.1 promotes, a fresh scaffold resolves devkitmain(1.4.0) and dies on first shell entry withcalled 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;behindbuiltins.functionArgs vigos.lib.mkProjectShell ? workflowviaoptionalAttrs, so older builders degrade to their gitflow default instead of failing eval. All template comments preserved; upgrades were never affected (flake.nixis scaffold-once).Closes #1249
Refs #1249
Verification
tests/test_workflow_model.pytests/test_workflow_model.py22/22,test_scaffold_lint.py+test_flake_hooks.py+test_downstream_flake.pygreen; full pre-commit suite green (51 hooks).vig-osDEVKIT_WORKFLOW=trunkenters the shell against BOTHgithub:vig-os/devkit(main = 1.4.0, previously fatal) and?ref=1.4.1-rc1