From db6fa5c7afd5d3f6ac7f216c5041179a5d1ddb2b Mon Sep 17 00:00:00 2001 From: "renovate-rancher[bot]" <119870437+renovate-rancher[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 06:03:49 +0000 Subject: [PATCH] Update module github.com/urfave/cli to v3 --- cmd/rancher-machine/machine.go | 2 +- commands/commands.go | 2 +- commands/commands_test.go | 2 +- commands/commandstest/fake_command_line.go | 2 +- commands/create.go | 2 +- commands/flag_sort.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) 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 6cd7eecfa1..41c47669e1 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 8a1d3e9072..70e3794f33 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 f655d14339..0e0d6aa5e5 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.v3" ) 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 805fce4e7d..bbdf571b05 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/rancher/wrangler/v3 v3.7.0 github.com/skarademir/naturalsort v0.0.0-20150715044055-69a5d87bef62 github.com/stretchr/testify v1.11.1 - github.com/urfave/cli v1.22.17 + github.com/urfave/cli/v3 v3.10.1 github.com/vmware/govcloudair v0.0.2 github.com/vmware/govmomi v0.42.0 golang.org/x/crypto v0.52.0 diff --git a/go.sum b/go.sum index 27c4b02c56..166ebadab1 100644 --- a/go.sum +++ b/go.sum @@ -256,8 +256,8 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -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.10.1 h1:7Kx9H50hrHbRbyxgO1KP6/BcbiGRz0uYh5YyQ30JEEY= +github.com/urfave/cli/v3 v3.10.1/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso= 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=