Skip to content

Commit

Permalink
fix: duplicate import
Browse files Browse the repository at this point in the history
Resolves the duplicate import of `github.com/hashicorp/packer-plugin-sdk/packer`.

Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
  • Loading branch information
tenthirtyam authored and lbajolet-hashicorp committed Nov 4, 2024
1 parent 3b080bf commit 9b0e7aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builder/vmware/iso/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 9b0e7aa

Please sign in to comment.