From bdc8ac2813f896e5a6964b6f3716bcf7f816b8e1 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 16 Mar 2021 17:59:55 +0100 Subject: [PATCH] document redirects --- packer/plugin.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packer/plugin.go b/packer/plugin.go index 2aa97acf1..bc649b3af 100644 --- a/packer/plugin.go +++ b/packer/plugin.go @@ -25,6 +25,15 @@ type PluginConfig struct { PostProcessors PostProcessorSet DataSources DatasourceSet + // Redirects are only set when a plugin was completely moved out; they allow + // telling where a plugin has moved by checking if a known component of this + // plugin is used. For example implicitly require the + // github.com/hashicorp/amazon plugin if it was moved out and the + // "amazon-ebs" plugin is used, but not found. + // + // Redirects will be bypassed if the redirected components are already found + // in their corresponding sets (Builders, Provisioners, PostProcessors, + // DataSources) BuilderRedirects map[string]string DatasourceRedirects map[string]string ProvisionerRedirects map[string]string