From 4b8d86b2b93cf089347b19daa21c74e3fb6f7977 Mon Sep 17 00:00:00 2001 From: Raymond Sukanto Date: Tue, 8 Oct 2024 17:54:05 -0400 Subject: [PATCH] fix lint --- cmd/nodecmd/create_devnet.go | 3 ++- cmd/nodecmd/deploy.go | 1 + cmd/nodecmd/destroy.go | 3 ++- cmd/nodecmd/dynamic_ips.go | 1 + cmd/nodecmd/export.go | 3 ++- cmd/nodecmd/import.go | 3 ++- cmd/nodecmd/list.go | 3 ++- cmd/nodecmd/load_test_stop.go | 3 ++- cmd/nodecmd/refresh_ips.go | 1 + cmd/nodecmd/resize.go | 3 ++- cmd/nodecmd/scp.go | 3 ++- cmd/nodecmd/ssh.go | 3 ++- cmd/nodecmd/status.go | 3 ++- cmd/nodecmd/update_subnet.go | 3 ++- cmd/nodecmd/upgrade.go | 3 ++- cmd/nodecmd/validate_primary.go | 3 ++- cmd/nodecmd/validate_subnet.go | 3 ++- cmd/nodecmd/whitelist.go | 3 ++- 18 files changed, 33 insertions(+), 15 deletions(-) diff --git a/cmd/nodecmd/create_devnet.go b/cmd/nodecmd/create_devnet.go index 4acb0e325..08caae6bb 100644 --- a/cmd/nodecmd/create_devnet.go +++ b/cmd/nodecmd/create_devnet.go @@ -6,7 +6,6 @@ import ( _ "embed" "encoding/json" "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "os" "path/filepath" "strconv" @@ -14,6 +13,8 @@ import ( "sync" "time" + "github.com/ava-labs/avalanche-cli/pkg/node" + "golang.org/x/exp/slices" "github.com/ava-labs/avalanche-cli/pkg/ansible" diff --git a/cmd/nodecmd/deploy.go b/cmd/nodecmd/deploy.go index 9520ded12..b5fe10511 100644 --- a/cmd/nodecmd/deploy.go +++ b/cmd/nodecmd/deploy.go @@ -4,6 +4,7 @@ package nodecmd import ( "fmt" + "github.com/ava-labs/avalanche-cli/pkg/node" "github.com/ava-labs/avalanche-cli/cmd/blockchaincmd" diff --git a/cmd/nodecmd/destroy.go b/cmd/nodecmd/destroy.go index 5ab6fa22d..a3a3f6997 100644 --- a/cmd/nodecmd/destroy.go +++ b/cmd/nodecmd/destroy.go @@ -5,10 +5,11 @@ package nodecmd import ( "errors" "fmt" - nodePkg "github.com/ava-labs/avalanche-cli/pkg/node" "os" "strings" + nodePkg "github.com/ava-labs/avalanche-cli/pkg/node" + awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws" gcpAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/gcp" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" diff --git a/cmd/nodecmd/dynamic_ips.go b/cmd/nodecmd/dynamic_ips.go index 570f99898..4f5599efe 100644 --- a/cmd/nodecmd/dynamic_ips.go +++ b/cmd/nodecmd/dynamic_ips.go @@ -5,6 +5,7 @@ package nodecmd import ( "context" "fmt" + nodePkg "github.com/ava-labs/avalanche-cli/pkg/node" awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws" diff --git a/cmd/nodecmd/export.go b/cmd/nodecmd/export.go index 62fbe7bf7..d25b27e12 100644 --- a/cmd/nodecmd/export.go +++ b/cmd/nodecmd/export.go @@ -4,11 +4,12 @@ package nodecmd import ( "encoding/json" - "github.com/ava-labs/avalanche-cli/pkg/node" "io" "os" "path/filepath" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/cobrautils" "github.com/ava-labs/avalanche-cli/pkg/constants" "github.com/ava-labs/avalanche-cli/pkg/models" diff --git a/cmd/nodecmd/import.go b/cmd/nodecmd/import.go index 3e8e7270e..6c76a8c03 100644 --- a/cmd/nodecmd/import.go +++ b/cmd/nodecmd/import.go @@ -5,11 +5,12 @@ package nodecmd import ( "encoding/json" "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "io" "os" "path/filepath" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" "github.com/ava-labs/avalanche-cli/pkg/constants" diff --git a/cmd/nodecmd/list.go b/cmd/nodecmd/list.go index 76deaca5e..39d86ddc0 100644 --- a/cmd/nodecmd/list.go +++ b/cmd/nodecmd/list.go @@ -3,10 +3,11 @@ package nodecmd import ( - "github.com/ava-labs/avalanche-cli/pkg/node" "sort" "strings" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/cobrautils" "github.com/ava-labs/avalanche-cli/pkg/models" "github.com/ava-labs/avalanche-cli/pkg/ux" diff --git a/cmd/nodecmd/load_test_stop.go b/cmd/nodecmd/load_test_stop.go index 8eda7c4c5..00a31881b 100644 --- a/cmd/nodecmd/load_test_stop.go +++ b/cmd/nodecmd/load_test_stop.go @@ -5,10 +5,11 @@ package nodecmd import ( "errors" "fmt" - nodePkg "github.com/ava-labs/avalanche-cli/pkg/node" "os" "path/filepath" + nodePkg "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/ansible" awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws" gcpAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/gcp" diff --git a/cmd/nodecmd/refresh_ips.go b/cmd/nodecmd/refresh_ips.go index 6385896bb..f4d7bbde1 100644 --- a/cmd/nodecmd/refresh_ips.go +++ b/cmd/nodecmd/refresh_ips.go @@ -4,6 +4,7 @@ package nodecmd import ( "fmt" + "github.com/ava-labs/avalanche-cli/pkg/node" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" diff --git a/cmd/nodecmd/resize.go b/cmd/nodecmd/resize.go index 2548cb2aa..2d495f706 100644 --- a/cmd/nodecmd/resize.go +++ b/cmd/nodecmd/resize.go @@ -4,11 +4,12 @@ package nodecmd import ( "fmt" - nodePkg "github.com/ava-labs/avalanche-cli/pkg/node" "math" "strconv" "strings" + nodePkg "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/ansible" awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws" gcpAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/gcp" diff --git a/cmd/nodecmd/scp.go b/cmd/nodecmd/scp.go index fcd2580f1..20c426319 100644 --- a/cmd/nodecmd/scp.go +++ b/cmd/nodecmd/scp.go @@ -4,12 +4,13 @@ package nodecmd import ( "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "os" "path/filepath" "strings" "sync" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/cobrautils" "github.com/ava-labs/avalanche-cli/pkg/models" "github.com/ava-labs/avalanche-cli/pkg/utils" diff --git a/cmd/nodecmd/ssh.go b/cmd/nodecmd/ssh.go index c10daccdc..effb613cd 100644 --- a/cmd/nodecmd/ssh.go +++ b/cmd/nodecmd/ssh.go @@ -4,13 +4,14 @@ package nodecmd import ( "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "os" "os/exec" "path/filepath" "strings" "sync" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" "github.com/ava-labs/avalanche-cli/pkg/constants" diff --git a/cmd/nodecmd/status.go b/cmd/nodecmd/status.go index ee3428b29..58b83e013 100644 --- a/cmd/nodecmd/status.go +++ b/cmd/nodecmd/status.go @@ -4,11 +4,12 @@ package nodecmd import ( "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "os" "strings" "sync" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/cmd/blockchaincmd" "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" diff --git a/cmd/nodecmd/update_subnet.go b/cmd/nodecmd/update_subnet.go index aee0669f4..44f06ce32 100644 --- a/cmd/nodecmd/update_subnet.go +++ b/cmd/nodecmd/update_subnet.go @@ -4,9 +4,10 @@ package nodecmd import ( "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "sync" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/cmd/blockchaincmd" "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" diff --git a/cmd/nodecmd/upgrade.go b/cmd/nodecmd/upgrade.go index 75d6df4e2..c00b23f63 100644 --- a/cmd/nodecmd/upgrade.go +++ b/cmd/nodecmd/upgrade.go @@ -5,10 +5,11 @@ package nodecmd import ( "encoding/json" "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "strings" "sync" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/binutils" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" diff --git a/cmd/nodecmd/validate_primary.go b/cmd/nodecmd/validate_primary.go index 68f4f733a..45aaece9e 100644 --- a/cmd/nodecmd/validate_primary.go +++ b/cmd/nodecmd/validate_primary.go @@ -5,11 +5,12 @@ package nodecmd import ( "errors" "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "os" "strconv" "time" + "github.com/ava-labs/avalanche-cli/pkg/node" + blockchaincmd "github.com/ava-labs/avalanche-cli/cmd/blockchaincmd" "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" diff --git a/cmd/nodecmd/validate_subnet.go b/cmd/nodecmd/validate_subnet.go index 9232715d2..674fa0c78 100644 --- a/cmd/nodecmd/validate_subnet.go +++ b/cmd/nodecmd/validate_subnet.go @@ -6,9 +6,10 @@ import ( "encoding/json" "errors" "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "time" + "github.com/ava-labs/avalanche-cli/pkg/node" + blockchaincmd "github.com/ava-labs/avalanche-cli/cmd/blockchaincmd" "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" diff --git a/cmd/nodecmd/whitelist.go b/cmd/nodecmd/whitelist.go index 82156c099..4a991f097 100644 --- a/cmd/nodecmd/whitelist.go +++ b/cmd/nodecmd/whitelist.go @@ -4,11 +4,12 @@ package nodecmd import ( "fmt" - "github.com/ava-labs/avalanche-cli/pkg/node" "strconv" "strings" "sync" + "github.com/ava-labs/avalanche-cli/pkg/node" + "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/application" awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws"