Skip to content

Conversation

@vrn-sn
Copy link
Member

@vrn-sn vrn-sn commented Oct 15, 2025

Enables iterative resolution of chained aliases.

@vrn-sn
Copy link
Member Author

vrn-sn commented Oct 16, 2025

Also want to add that cycle detection is relatively simple and inexpensive.

This stems from the fact that dependency aliases must always be defined in the same or a higher-level .luaurc than dependent aliases. If defined higher, however, it is impossible to "complete" the cycle, as the higher-defined aliases cannot depend on aliases defined at lower levels (follows directly from the search semantics).

From that, it's easy to see that the only way for a cycle to occur is if all aliases in the cycle are defined in the same .luaurc file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant