Skip to content

crash when local variable removed #13304

@phillip-constantine

Description

@phillip-constantine

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

If I comment out a specific local variable, packer crashes on 'build' and 'validate' commands

Reproduction Steps

Not sure exactly, but I think it's:

  1. reference an original local inside another local
  2. delete the original local
  3. run a build command

Might be exacerbated by having this spread across multiple files

Packer version

1.12

Simplified Packer Template

https://gist.github.com/phillip-constantine/8297fafdc3d98182e67fef416ee89c5b

Operating system and Environment details

Ubuntu 22.04 x86_64, running Packer in Docker

Log Fragments and crash.log files

https://gist.github.com/phillip-constantine/8297fafdc3d98182e67fef416ee89c5b

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