From e8c1b290c58f7ba0a036db443a100ae436f88422 Mon Sep 17 00:00:00 2001 From: anshul sharma Date: Wed, 23 Jul 2025 12:56:58 +0530 Subject: [PATCH] lint fix --- command/init.go | 3 ++- command/plugins_install.go | 3 ++- packer/plugin-getter/release/getter.go | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/command/init.go b/command/init.go index 0c6e2541e..f1a28993e 100644 --- a/command/init.go +++ b/command/init.go @@ -7,11 +7,12 @@ import ( "context" "crypto/sha256" "fmt" - "github.com/hashicorp/packer/packer/plugin-getter/release" "log" "runtime" "strings" + "github.com/hashicorp/packer/packer/plugin-getter/release" + gversion "github.com/hashicorp/go-version" pluginsdk "github.com/hashicorp/packer-plugin-sdk/plugin" "github.com/hashicorp/packer/packer" diff --git a/command/plugins_install.go b/command/plugins_install.go index 9ed516d3e..78f909f56 100644 --- a/command/plugins_install.go +++ b/command/plugins_install.go @@ -10,7 +10,6 @@ import ( "encoding/json" "flag" "fmt" - "github.com/hashicorp/packer/packer/plugin-getter/release" "io" "os" "os/exec" @@ -18,6 +17,8 @@ import ( "runtime" "strings" + "github.com/hashicorp/packer/packer/plugin-getter/release" + "github.com/hashicorp/go-version" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/packer-plugin-sdk/plugin" diff --git a/packer/plugin-getter/release/getter.go b/packer/plugin-getter/release/getter.go index c1a921c92..3b74b655c 100644 --- a/packer/plugin-getter/release/getter.go +++ b/packer/plugin-getter/release/getter.go @@ -7,14 +7,15 @@ import ( "bytes" "encoding/json" "fmt" - pluginsdk "github.com/hashicorp/packer-plugin-sdk/plugin" - plugingetter "github.com/hashicorp/packer/packer/plugin-getter" - gh "github.com/hashicorp/packer/packer/plugin-getter/github" "io" "log" "net/http" "path/filepath" "strings" + + pluginsdk "github.com/hashicorp/packer-plugin-sdk/plugin" + plugingetter "github.com/hashicorp/packer/packer/plugin-getter" + gh "github.com/hashicorp/packer/packer/plugin-getter/github" ) type Getter struct {