-
Notifications
You must be signed in to change notification settings - Fork 599
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
GoHCL does not support interpolation #615
Comments
In fact, I am a little confused. If we know that it is a interpolation, why should we escape it? |
Hi @FLAGLORD, I'm not sure I follow what you are referring to, since the summary of the issue talks about However, I think what you are asking amounts to: "why can't If you want to produce HCL syntax rather than HCL values then |
Hi @apparentlymart. I want to provide some background information: I hope to generate a HCL syntax file with some existing configuration information. But I found that The symmetry of decoding and re-encoding you mentioned is really a key point, and I roughly got it. But I'm still a little confused. In your example, original string template contained For ASCII escape characters like |
I noticed this issue.
It mentioned that
GoHCL
only supports static values, and it would convert all string beginning with${
to $$${
. It brings some problem when using interpolation.hcl/hclwrite/generate.go
Lines 367 to 372 in 7208bce
Could it support something like
\$
to deal with interpolation string? I think it would not corrupt compatibility.The text was updated successfully, but these errors were encountered: