Repository navigation
fix: forward provides children onto aspect root - #506
Merged
Merged
Conversation
In mergeWithAspectMeta, shallow-merge provides children onto the merged aspect so aspect.docker resolves to aspect.provides.docker without requiring the _.docker accessor. Forwarded keys are tagged via __providesForwarded so the pipeline's key classification skips them — prevents double-processing alongside includes. Fixes regression from denful#504 which removed _.docker usage but did not implement the forwarding.
Member
|
omg thanks! and sorry for the regression. |
vic
approved these changes
May 11, 2026
charlesfire
pushed a commit
to charlesfire/den
that referenced
this pull request
May 16, 2026
## Summary - Forward `provides` children onto the merged aspect root in `mergeWithAspectMeta`, so `aspect.docker` resolves to `aspect.provides.docker` without requiring the `_.docker` accessor - Tag forwarded keys via `__providesForwarded` so the pipeline's key classification skips them — prevents double-processing alongside includes - Add `__providesForwarded` to `structuralKeysSet` Fixes regression from denful#504 which removed `_.docker` usage but did not implement the forwarding, breaking `den.aspects.virtualization.docker` access in diagram-demo template. ## Test plan - [x] 771/771 CI tests pass - [x] diagram-demo template evaluates (148 checks) - [x] den-configs helix.enable = true - [x] `aspect-path.test-excludeAspect-by-provider` passes (validates forwarded keys don't affect pipeline classification)
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
provideschildren onto the merged aspect root inmergeWithAspectMeta, soaspect.dockerresolves toaspect.provides.dockerwithout requiring the_.dockeraccessor__providesForwardedso the pipeline's key classification skips them — prevents double-processing alongside includes__providesForwardedtostructuralKeysSetFixes regression from #504 which removed
_.dockerusage but did not implement the forwarding, breakingden.aspects.virtualization.dockeraccess in diagram-demo template.Test plan
aspect-path.test-excludeAspect-by-providerpasses (validates forwarded keys don't affect pipeline classification)