From 9b0e7aae3ad030ec362445f69ce95d2bf8df9533 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Wed, 16 Oct 2024 14:25:44 -0400 Subject: [PATCH] fix: duplicate import Resolves the duplicate import of `github.com/hashicorp/packer-plugin-sdk/packer`. Signed-off-by: Ryan Johnson --- builder/vmware/iso/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builder/vmware/iso/config.go b/builder/vmware/iso/config.go index ba4aaa12..ded40f84 100644 --- a/builder/vmware/iso/config.go +++ b/builder/vmware/iso/config.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/packer-plugin-sdk/bootcommand" "github.com/hashicorp/packer-plugin-sdk/common" "github.com/hashicorp/packer-plugin-sdk/multistep/commonsteps" - "github.com/hashicorp/packer-plugin-sdk/packer" packersdk "github.com/hashicorp/packer-plugin-sdk/packer" "github.com/hashicorp/packer-plugin-sdk/shutdowncommand" "github.com/hashicorp/packer-plugin-sdk/template/config" @@ -161,7 +160,7 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) { if c.Version == 0 { c.Version = defaultHardwareVersion } else if c.Version < minimumHardwareVersion { - errs = packer.MultiErrorAppend(errs, fmt.Errorf("invalid 'version' %d, minimum hardware version: %d", c.Version, minimumHardwareVersion)) + errs = packersdk.MultiErrorAppend(errs, fmt.Errorf("invalid 'version' %d, minimum hardware version: %d", c.Version, minimumHardwareVersion)) } if c.VMXTemplatePath != "" {