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

hclwrite: Allow blank quoted string block labels #422

Merged
merged 1 commit into from
Nov 18, 2020

Commits on Nov 18, 2020

  1. hclwrite: Allow blank quoted string block labels

    The hclsyntax package permits block labels to be blank quoted strings,
    and defers to the application to determine if this is valid or not. This
    commit updates hclwrite to allow the same behaviour.
    
    This is in response to an upstream bug report on Terraform, which uses
    hclwrite to implement its fmt subcommand. Given a block with a blank
    quoted string label, it currently deletes the label when formatting.
    This is inconsistent with Terraform's behaviour when parsing HCL, which
    treats empty labels differently from missing labels.
    alisdair committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    1818f36 View commit details
    Browse the repository at this point in the history