Skip to content

packer validate . outputs same error message multiple times for unsupported block types #13241

@gstvcruz

Description

@gstvcruz

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Overview of the Issue

packer validate . outputs the same error message exactly four times for each unsupported root block type found per packer template.

Reproduction Steps

Introduce any amount of unsupported root block types in any packer template. Nested blocks aren't affected.

Packer version

v1.11.2

Simplified Packer Template

e.g., src instead of source, but it happens for any unsupported block type.

packer {
...
}

src "docker" "ubuntu" {
...
}

build {
...
}

Operating system and Environment details

Ubuntu 24.04 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions