I’m working on my first hcl2 template for packer and had a question about using the build name as part of the output_directory. This can be useful when you have two builds that use the same source and don’t want them to clobber each other.
The template is setup with two builds that are named build base & full.
Within the source I’m specifying the output_directory using the templating syntax. However the build_name is not what I expected. It appears to be the name specified in the source resource.
Am I missing something obvious here? Maybe this is a bug with the build_name not sourcing the correct value? My expectation is that the build_name would be the same value used in the -only command line flag which would be base.vmware-iso.macOS_11 or full.vmware-iso.macOS_11.