bug: second sequential when in a profile silently re-scopes earlier actions under the new condition #30
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
FrogOS/DSL#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
DSL.Builder.when` (src/DSL/Builder.hs:74-78) overwrites `ssCondition` on the accumulated section state and keeps already-collected actions:
Result: ProfileSection with condition B and both actions — `disable "docker"` is now silently gated on condB, condA vanishes. Same family as closed #23 (nested when), but the nested case is now a type error via scopes while the sequential case still type-checks and miscompiles intent.
BuilderSpec has no test with two `when` calls in one profile.
Fix options:
First option is the minimal correct one.