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

d2ir: fix multiple substitutions in imports #1914

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

alixander
Copy link
Collaborator

Turns out we can't cache the IR for imports.

The same file may be imported into different scopes, which change the substitutions of vars. But when a cache is used, the same var in the AST gets replaced.

We can probably replace these upon returning cached result, but I think it's fickle and IR compilations are fast anyway.

closes #1892

@alixander alixander merged commit d1052f4 into terrastruct:master Apr 17, 2024
3 checks passed
@alixander alixander deleted the variable-scope branch April 17, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variable Scoping not honored on imports
1 participant