Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify which package rules apply inside vs outside a component #1362

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Feb 15, 2023

Previously we were keying all component rules off the actual on-disk file for that component, even when those rules were being consume at invocation sites of the component rather than inside the component itself. This meant that we could not apply those rules if we move component resolution out of the AST transform stage.

But it's actually OK to key the exterior rules off the component's globally-addressable (or at least engine-scoped) name, since the point of the rules is to control classic global resolution.

This is an extraction from findings in #1357. I want to land some smaller steps from that work separately to keep green tests at each point.

Previously we were keying all component rules off the actual on-disk file for that component, even when those rules were being consume at *invocation sites* of the component rather than inside the component itself. This meant that we could not apply those rules if we move component resolution out of the AST transform stage.

But it's actually OK to key the exterior rules off the component's globally-addressable (or at least engine-scoped) name, since the point of the rules is to control classic global resolution.
@ef4 ef4 merged commit 07818cc into main Feb 15, 2023
@ef4 ef4 deleted the rule-separation branch February 15, 2023 04:39
This was referenced May 2, 2023
@ef4 ef4 added the enhancement New feature or request label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant