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

packer-sdc: return errors on duplicate tag/field #164

Merged
merged 1 commit into from
Mar 7, 2023

Commits on Mar 7, 2023

  1. packer-sdc: return errors on duplicate tag/field

    When generating the flattened structures for a HCL2-compatible config,
    we didn't prevent users from defining duplicate fields or tags, instead
    warning them.
    
    The warning in itself did not prevent the resulting structures from
    being generated, leading into a situation where the first definition of
    the arg/tag would have precedence over the subsequent definitions,
    leading to shadowing their definitions.
    
    To prevent this in the future, we immediately return an error when such
    a conflict is introduced, and signal to the user which attribute is
    problematic.
    lbajolet-hashicorp authored and nywilken committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    b1b7974 View commit details
    Browse the repository at this point in the history