diff --git a/hcl2template/types.packer_config.go b/hcl2template/types.packer_config.go index dc8f29536..f3f061aa2 100644 --- a/hcl2template/types.packer_config.go +++ b/hcl2template/types.packer_config.go @@ -103,5 +103,6 @@ func (p *Parser) Parse(path string) ([]packer.Build, hcl.Diagnostics) { return nil, diags } - return p.getBuilds(cfg) + builds, moreDiags := p.getBuilds(cfg) + return builds, append(diags, moreDiags...) }