From 8ff8977a2bc07d8170334e22c17b12573e8ff5ff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 17:27:35 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/urfave/cli/v3 Bumps [github.com/urfave/cli/v3](https://github.com/urfave/cli) from 3.0.0-alpha4 to 3.0.0-alpha8. - [Release notes](https://github.com/urfave/cli/releases) - [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/urfave/cli/compare/v3.0.0-alpha4...v3.0.0-alpha8) --- updated-dependencies: - dependency-name: github.com/urfave/cli/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 4 +--- go.sum | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 56e3820c..577de43a 100644 --- a/go.mod +++ b/go.mod @@ -6,14 +6,12 @@ require ( github.com/coreos/go-semver v0.3.1 github.com/kr/pretty v0.1.0 github.com/sergi/go-diff v1.3.1 - github.com/urfave/cli/v3 v3.0.0-alpha4 + github.com/urfave/cli/v3 v3.0.0-alpha8 ) require ( - github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect github.com/kr/text v0.2.0 // indirect github.com/rogpeppe/go-internal v1.9.0 // indirect - github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect ) diff --git a/go.sum b/go.sum index 7c73e409..e3d66d18 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4= github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= -github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= -github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -13,16 +11,14 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -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.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/urfave/cli/v3 v3.0.0-alpha4 h1:RJFGIs3mcalmc2YgliDh0Pa4l79S+Dqdz7cW8Fcp7Rg= -github.com/urfave/cli/v3 v3.0.0-alpha4/go.mod h1:ZFqSEHhze0duJACOdz43I5IcnKhf4RoTlOoUMBUggOI= +github.com/urfave/cli/v3 v3.0.0-alpha8 h1:H+qxFPoCkGzdF8KUMs2fEOZl5io/1QySgUiGfar8occ= +github.com/urfave/cli/v3 v3.0.0-alpha8/go.mod h1:0kK/RUFHyh+yIKSfWxwheGndfnrvYSmYFVeKCh03ZUc= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/ydnar/pretty v0.0.0-20230919215528-0880c4e00e56 h1:AB+F5e9cqqk34MNVQf+Eje3YHKn9XnMX25TbY6LbUwY= From 58de016b30f7e950f8ee111483547b2989cc4cfe Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Fri, 26 Jan 2024 09:53:24 -0800 Subject: [PATCH 2/2] cmd/wit-bindgen-go/cmd: update to github.com/urfave/cli API changes --- cmd/wit-bindgen-go/cmd/print/print.go | 5 +++-- cmd/wit-bindgen-go/cmd/syntax/syntax.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/wit-bindgen-go/cmd/print/print.go b/cmd/wit-bindgen-go/cmd/print/print.go index b7735032..ea96b009 100644 --- a/cmd/wit-bindgen-go/cmd/print/print.go +++ b/cmd/wit-bindgen-go/cmd/print/print.go @@ -1,6 +1,7 @@ package print import ( + "context" "fmt" "github.com/ydnar/wasm-tools-go/internal/witcli" @@ -16,8 +17,8 @@ var Command = &cli.Command{ Action: action, } -func action(ctx *cli.Context) error { - res, err := witcli.LoadOne(ctx.Args().Slice()...) +func action(ctx context.Context, cmd *cli.Command) error { + res, err := witcli.LoadOne(cmd.Args().Slice()...) if err != nil { return err } diff --git a/cmd/wit-bindgen-go/cmd/syntax/syntax.go b/cmd/wit-bindgen-go/cmd/syntax/syntax.go index c34a1625..8397adb0 100644 --- a/cmd/wit-bindgen-go/cmd/syntax/syntax.go +++ b/cmd/wit-bindgen-go/cmd/syntax/syntax.go @@ -1,6 +1,7 @@ package syntax import ( + "context" "fmt" "github.com/urfave/cli/v3" @@ -14,8 +15,8 @@ var Command = &cli.Command{ Action: action, } -func action(ctx *cli.Context) error { - res, err := witcli.LoadOne(ctx.Args().Slice()...) +func action(ctx context.Context, cmd *cli.Command) error { + res, err := witcli.LoadOne(cmd.Args().Slice()...) if err != nil { return err }