Skip to content

fix(deps): update module github.com/urfave/cli/v2 to v3 #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/vela-artifactory/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"time"

"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"

_ "github.com/joho/godotenv/autoload"

Expand All @@ -32,7 +32,7 @@
fmt.Fprintf(os.Stdout, "%s\n", string(bytes))

// create new CLI application
app := cli.NewApp()

Check failure on line 35 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

undefined: cli.NewApp

Check failure on line 35 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

undefined: cli.NewApp

Check failure on line 35 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

undefined: cli.NewApp

Check failure on line 35 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

undefined: cli.NewApp

// Plugin Information

Expand All @@ -40,7 +40,7 @@
app.HelpName = "vela-artifactory"
app.Usage = "Vela Artifactory plugin for managing artifacts"
app.Copyright = "Copyright 2019 Target Brands, Inc. All rights reserved."
app.Authors = []*cli.Author{

Check failure on line 43 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

undefined: cli.Author

Check failure on line 43 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

undefined: cli.Author

Check failure on line 43 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

undefined: cli.Author

Check failure on line 43 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

undefined: cli.Author
{
Name: "Vela Admins",
Email: "[email protected]",
Expand All @@ -57,21 +57,21 @@

app.Flags = []cli.Flag{
&cli.StringFlag{
EnvVars: []string{"PARAMETER_LOG_LEVEL", "ARTIFACTORY_LOG_LEVEL"},

Check failure on line 60 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 60 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 60 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 60 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.StringFlag
FilePath: "/vela/parameters/artifactory/log_level,/vela/secrets/artifactory/log_level",

Check failure on line 61 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field FilePath in struct literal of type cli.StringFlag

Check failure on line 61 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field FilePath in struct literal of type cli.StringFlag

Check failure on line 61 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field FilePath in struct literal of type cli.StringFlag

Check failure on line 61 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field FilePath in struct literal of type cli.StringFlag
Name: "log.level",
Usage: "set log level - options: (trace|debug|info|warn|error|fatal|panic)",
Value: "info",
},
&cli.StringFlag{
EnvVars: []string{"PARAMETER_PATH", "ARTIFACTORY_PATH"},

Check failure on line 67 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 67 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 67 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 67 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.StringFlag
FilePath: "/vela/parameters/artifactory/path,/vela/secrets/artifactory/path",

Check failure on line 68 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field FilePath in struct literal of type cli.StringFlag

Check failure on line 68 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field FilePath in struct literal of type cli.StringFlag

Check failure on line 68 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field FilePath in struct literal of type cli.StringFlag

Check failure on line 68 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field FilePath in struct literal of type cli.StringFlag
Name: "path",
Usage: "source/target path to artifact(s) for action",
},
&cli.BoolFlag{
EnvVars: []string{"PARAMETER_RECURSIVE", "ARTIFACTORY_RECURSIVE"},

Check failure on line 73 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.BoolFlag

Check failure on line 73 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.BoolFlag

Check failure on line 73 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.BoolFlag

Check failure on line 73 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.BoolFlag
FilePath: "/vela/parameters/artifactory/recursive,/vela/secrets/artifactory/recursive",

Check failure on line 74 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field FilePath in struct literal of type cli.BoolFlag

Check failure on line 74 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field FilePath in struct literal of type cli.BoolFlag

Check failure on line 74 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field FilePath in struct literal of type cli.BoolFlag

Check failure on line 74 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field FilePath in struct literal of type cli.BoolFlag
Name: "recursive",
Usage: "enables operating on sub-directories for the source/target path",
},
Expand All @@ -79,7 +79,7 @@
// Config Flags

&cli.StringFlag{
EnvVars: []string{"PARAMETER_ACTION", "ARTIFACTORY_ACTION"},

Check failure on line 82 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 82 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 82 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.StringFlag

Check failure on line 82 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

unknown field EnvVars in struct literal of type cli.StringFlag
FilePath: "/vela/parameters/artifactory/action,/vela/secrets/artifactory/action",
Name: "config.action",
Usage: "action to perform against the Artifactory instance",
Expand Down Expand Up @@ -273,7 +273,7 @@
}

// run executes the plugin based off the configuration provided.
func run(c *cli.Context) error {

Check failure on line 276 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

undefined: cli.Context

Check failure on line 276 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / build

undefined: cli.Context

Check failure on line 276 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

undefined: cli.Context

Check failure on line 276 in cmd/vela-artifactory/main.go

View workflow job for this annotation

GitHub Actions / test

undefined: cli.Context
// set the log level for the plugin
switch c.String("log.level") {
case "t", "trace", "Trace", "TRACE":
Expand Down
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/jfrog/jfrog-client-go v1.50.0
github.com/joho/godotenv v1.5.1
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli/v2 v2.27.5
github.com/urfave/cli/v3 v3.1.1
)

require (
Expand All @@ -25,7 +25,6 @@ require (
github.com/bytedance/sonic/loader v0.2.3 // indirect
github.com/cloudflare/circl v1.6.0 // indirect
github.com/cloudwego/base64x v0.1.5 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
Expand Down Expand Up @@ -62,7 +61,6 @@ require (
github.com/pierrec/lz4/v4 v4.1.22 // indirect
github.com/pjbgf/sha1cd v0.3.2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/skeema/knownhosts v1.3.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
Expand All @@ -71,7 +69,6 @@ require (
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
golang.org/x/arch v0.14.0 // indirect
golang.org/x/crypto v0.35.0 // indirect
golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa // indirect
Expand Down
10 changes: 2 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ github.com/cloudflare/circl v1.6.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZ
github.com/cloudwego/base64x v0.1.5 h1:XPciSp1xaq2VCSt6lF0phncD4koWyULpl5bUxbfCyP4=
github.com/cloudwego/base64x v0.1.5/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY=
github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0=
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s=
github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down Expand Up @@ -157,8 +155,6 @@ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
Expand Down Expand Up @@ -189,8 +185,8 @@ github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZ
github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc=
github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
github.com/urfave/cli/v3 v3.1.1 h1:bNnl8pFI5dxPOjeONvFCDFoECLQsceDG4ejahs4Jtxk=
github.com/urfave/cli/v3 v3.1.1/go.mod h1:FJSKtM/9AiiTOJL4fJ6TbMUkxBXn7GO9guZqoZtpYpo=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=
Expand All @@ -203,8 +199,6 @@ github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofm
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
golang.org/x/arch v0.14.0 h1:z9JUEZWr8x4rR0OU6c4/4t6E6jOZ8/QBS2bBYBm4tx4=
Expand Down
Loading