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

fix(lib): inline references in strings should not destroy string itself #1401

Conversation

DanielMSchmidt
Copy link
Contributor

Found this bug while iterating on cross stack references

@DanielMSchmidt DanielMSchmidt merged commit e70d6fa into main Dec 9, 2021
@DanielMSchmidt DanielMSchmidt deleted the bug-removing-string-fragments-from-strings-with-inlined-terraform-references branch December 9, 2021 12:53
// if left is only a token, needs to be wrapped as terraform expression
if (leftTokenList.literals.length === 0 && leftTokenCount === 1) {
leftValue = `\${${leftTokens[0]}}`;
}

const rightValue =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the same issue happen with the right side?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the token list is joined from left to right

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2022

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants