Skip to content

fix: propagate context through named parametric includes - #444

Merged
vic merged 2 commits into
denful:mainfrom
sini:fix/issue-442-parametric-nested-includes
Apr 12, 2026
Merged

vic merged 2 commits into
denful:mainfrom
sini:fix/issue-442-parametric-nested-includes

Conversation

@sini

@sini sini commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator

Named aspects coerced from parametric fns (e.g. den.aspects.git = { user, ... }: { nixos = ...; }) had their context silently dropped when included from other parametric aspects. applyDeep's sub-recursion now reaches into named aspects' includes to apply context to the parametric functions inside.

Fixes #442.

@sini
sini requested a review from vic April 12, 2026 20:58
Named aspects coerced from parametric fns (e.g. `den.aspects.git =
{ user, ... }: { nixos = ...; }`) had their context silently dropped
when included from other parametric aspects. applyDeep's sub-recursion
now reaches into named aspects' includes to apply context to the
parametric functions inside.

Fixes denful#442.
@sini
sini force-pushed the fix/issue-442-parametric-nested-includes branch from 4dc24e4 to b2c7a5a Compare April 12, 2026 20:59
@sini sini changed the title fix(parametric): propagate context through named parametric includes fix: propagate context through named parametric includes Apr 12, 2026
Static named aspects, mixed owned+parametric aspects, and factory
functions inside nested parametric chains.
@vic vic added allow-ci allow all CI integration tests merge-approved Approved, merge yourself when ready labels Apr 12, 2026
@vic vic assigned sini Apr 12, 2026
@vic
vic merged commit dca6368 into denful:main Apr 12, 2026
34 of 44 checks passed
DylanRJohnston pushed a commit to DylanRJohnston/den that referenced this pull request Apr 13, 2026
Named aspects coerced from parametric fns (e.g. `den.aspects.git = {
user, ... }: { nixos = ...; }`) had their context silently dropped when
included from other parametric aspects. applyDeep's sub-recursion now
reaches into named aspects' includes to apply context to the parametric
functions inside.

Fixes denful#442.
@sini
sini deleted the fix/issue-442-parametric-nested-includes branch April 14, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests merge-approved Approved, merge yourself when ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Parametric aspects included by parametric aspects are not applied to the configuration.

2 participants