diff --git a/cmd/rancher-machine/machine.go b/cmd/rancher-machine/machine.go index 8d1952794d..3f079537c6 100644 --- a/cmd/rancher-machine/machine.go +++ b/cmd/rancher-machine/machine.go @@ -29,7 +29,7 @@ import ( "github.com/rancher/machine/libmachine/drivers/plugin/localbinary" "github.com/rancher/machine/libmachine/log" "github.com/rancher/machine/version" - "github.com/urfave/cli" + "github.com/urfave/cli/v3" ) var AppHelpTemplate = `Usage: {{.Name}} {{if .Flags}}[OPTIONS] {{end}}COMMAND [arg...] diff --git a/commands/commands.go b/commands/commands.go index 7dc2aed41d..83ccb38ed1 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -18,7 +18,7 @@ import ( "github.com/rancher/machine/libmachine/mcnutils" "github.com/rancher/machine/libmachine/persist" "github.com/rancher/machine/libmachine/ssh" - "github.com/urfave/cli" + "github.com/urfave/cli/v3" ) const ( diff --git a/commands/commands_test.go b/commands/commands_test.go index b2182bf6ec..16864620d8 100644 --- a/commands/commands_test.go +++ b/commands/commands_test.go @@ -16,7 +16,7 @@ import ( "github.com/rancher/machine/libmachine/provision" "github.com/rancher/machine/libmachine/state" "github.com/stretchr/testify/assert" - "github.com/urfave/cli" + "github.com/urfave/cli/v3" ) func TestGetFlagValue(t *testing.T) { diff --git a/commands/commandstest/fake_command_line.go b/commands/commandstest/fake_command_line.go index a01728351d..6787a4916f 100644 --- a/commands/commandstest/fake_command_line.go +++ b/commands/commandstest/fake_command_line.go @@ -1,7 +1,7 @@ package commandstest import ( - "github.com/urfave/cli" + "github.com/urfave/cli/v3" ) type FakeFlagger struct { diff --git a/commands/create.go b/commands/create.go index c663925db5..6680b30c6f 100644 --- a/commands/create.go +++ b/commands/create.go @@ -26,7 +26,7 @@ import ( "github.com/rancher/machine/libmachine/mcnerror" "github.com/rancher/machine/libmachine/mcnflag" "github.com/rancher/machine/libmachine/swarm" - "github.com/urfave/cli" + "github.com/urfave/cli/v3" "gopkg.in/yaml.v2" ) diff --git a/commands/flag_sort.go b/commands/flag_sort.go index f12035a17a..55bebdb8fc 100644 --- a/commands/flag_sort.go +++ b/commands/flag_sort.go @@ -1,6 +1,6 @@ package commands -import "github.com/urfave/cli" +import "github.com/urfave/cli/v3" type ByFlagName []cli.Flag diff --git a/go.mod b/go.mod index 9bd3db6be2..0dbe232f6b 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/samalba/dockerclient v0.0.0-20160531175551-a30362618471 github.com/skarademir/naturalsort v0.0.0-20150715044055-69a5d87bef62 github.com/stretchr/testify v1.10.0 - github.com/urfave/cli v1.22.15 + github.com/urfave/cli/v3 v3.3.3 github.com/vmware/govcloudair v0.0.2 github.com/vmware/govmomi v0.42.0 golang.org/x/crypto v0.33.0 diff --git a/go.sum b/go.sum index 89394de8de..205ecd1ece 100644 --- a/go.sum +++ b/go.sum @@ -230,8 +230,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tent/http-link-go v0.0.0-20130702225549-ac974c61c2f9 h1:/Bsw4C+DEdqPjt8vAqaC9LAqpAQnaCQQqmolqq3S1T4= github.com/tent/http-link-go v0.0.0-20130702225549-ac974c61c2f9/go.mod h1:RHkNRtSLfOK7qBTHaeSX1D6BNpI3qw7NTxsmNr4RvN8= -github.com/urfave/cli v1.11.1-0.20151120215642-0302d3914d2a h1:i6gus1o4iDkjlzGJCIvhbKmyk6zeIhIqgdSOcJi493g= -github.com/urfave/cli v1.11.1-0.20151120215642-0302d3914d2a/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli/v3 v3.3.3 h1:byCBaVdIXuLPIDm5CYZRVG6NvT7tv1ECqdU4YzlEa3I= +github.com/urfave/cli/v3 v3.3.3/go.mod h1:FJSKtM/9AiiTOJL4fJ6TbMUkxBXn7GO9guZqoZtpYpo= github.com/vmware/govcloudair v0.0.2 h1:ki01OjlgpEWyEc7iZTTaWW9tISSWafiqj/PHLPB4Iwc= github.com/vmware/govcloudair v0.0.2/go.mod h1:Vxktpba+eP4dX5YzYP869DRPSm5ChQ2A/GUrmKSLvlo= github.com/vmware/govmomi v0.42.0 h1:MbvAlVfjNBE1mHMaQ7yOSop1KLB0/93x6VAGuCtjqtI=