diff --git a/hcl2template/types.required_plugins.go b/hcl2template/types.required_plugins.go index 5f9eae049..a78c46837 100644 --- a/hcl2template/types.required_plugins.go +++ b/hcl2template/types.required_plugins.go @@ -42,8 +42,10 @@ func (cfg *PackerConfig) decodeRequiredPluginsBlock(f *hcl.File) hcl.Diagnostics func (cfg *PackerConfig) decodeImplicitRequiredPluginsBlocks(f *hcl.File) hcl.Diagnostics { // when a plugin is used but not defined in the required plugin blocks, it - // is 'implicitly used'. Here we read common configuration blocks to try to - // guess plugins. + // should 'implicitly required', when we want. Here we read common + // configuration blocks to try to guess plugins. + + // Then // decodeRequiredPluginsBlock needs to be called before // decodeImplicitRequiredPluginsBlocks; otherwise all required plugins will