From 3c9969d8416e9173a77e2590f645729c6abca41b Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Mon, 14 Sep 2020 12:49:38 -0700 Subject: [PATCH] cleanup goimports for linter --- builder/proxmox/clone/builder.go | 12 +++++------- builder/proxmox/clone/config.go | 2 +- builder/proxmox/iso/builder.go | 4 +--- builder/proxmox/iso/config.go | 2 +- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/builder/proxmox/clone/builder.go b/builder/proxmox/clone/builder.go index 981322634..2ba00e18e 100644 --- a/builder/proxmox/clone/builder.go +++ b/builder/proxmox/clone/builder.go @@ -1,16 +1,16 @@ package proxmoxclone import ( - "context" - "fmt" - "time" - proxmoxapi "github.com/Telmate/proxmox-api-go/proxmox" "github.com/hashicorp/hcl/v2/hcldec" - "github.com/hashicorp/packer/builder/proxmox/common" + proxmox "github.com/hashicorp/packer/builder/proxmox/common" "github.com/hashicorp/packer/helper/communicator" "github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/packer" + + "context" + "fmt" + "time" ) // The unique id for the builder @@ -23,8 +23,6 @@ type Builder struct { // Builder implements packer.Builder var _ packer.Builder = &Builder{} -var pluginVersion = "1.0.0" - func (b *Builder) ConfigSpec() hcldec.ObjectSpec { return b.config.FlatMapstructure().HCL2Spec() } func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) { diff --git a/builder/proxmox/clone/config.go b/builder/proxmox/clone/config.go index 3b8d2d5c6..0fce27b4e 100644 --- a/builder/proxmox/clone/config.go +++ b/builder/proxmox/clone/config.go @@ -3,7 +3,7 @@ package proxmoxclone import ( - "github.com/hashicorp/packer/builder/proxmox/common" + proxmox "github.com/hashicorp/packer/builder/proxmox/common" "github.com/hashicorp/packer/packer" ) diff --git a/builder/proxmox/iso/builder.go b/builder/proxmox/iso/builder.go index 4ae4569e7..650e35ee3 100644 --- a/builder/proxmox/iso/builder.go +++ b/builder/proxmox/iso/builder.go @@ -5,7 +5,7 @@ import ( proxmoxapi "github.com/Telmate/proxmox-api-go/proxmox" "github.com/hashicorp/hcl/v2/hcldec" - "github.com/hashicorp/packer/builder/proxmox/common" + proxmox "github.com/hashicorp/packer/builder/proxmox/common" "github.com/hashicorp/packer/common" "github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/packer" @@ -21,8 +21,6 @@ type Builder struct { // Builder implements packer.Builder var _ packer.Builder = &Builder{} -var pluginVersion = "1.0.0" - func (b *Builder) ConfigSpec() hcldec.ObjectSpec { return b.config.FlatMapstructure().HCL2Spec() } func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) { diff --git a/builder/proxmox/iso/config.go b/builder/proxmox/iso/config.go index 9346a24a0..65ab9ef92 100644 --- a/builder/proxmox/iso/config.go +++ b/builder/proxmox/iso/config.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/hashicorp/packer/builder/proxmox/common" + proxmox "github.com/hashicorp/packer/builder/proxmox/common" "github.com/hashicorp/packer/common" "github.com/hashicorp/packer/packer" )