diff options
| author | Teddy Wing | 2019-12-05 00:09:19 +0100 |
|---|---|---|
| committer | Teddy Wing | 2019-12-05 00:09:19 +0100 |
| commit | ffc36e46f311cdb68e2c21e68d2f8ee7b1e0c01a (patch) | |
| tree | edf68e0f471fa0769d5d71aad6e9253ee329d2b7 /ast.go | |
| parent | ac6ede1b84067c171a9efa1dc49763540c251b27 (diff) | |
| download | gomove-ffc36e46f311cdb68e2c21e68d2f8ee7b1e0c01a.tar.bz2 | |
Fix cli package compatibility using Go Modules
Recently, the following errors have come up when building:
$ go build
# github.com/ksubedi/gomove
./main.go:18:5: app.Author undefined (type *cli.App has no field or method Author)
./main.go:21:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:26:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:30:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:37:13: cannot use func literal (type func(*cli.Context)) as type cli.ActionFunc in assignment
The `github.com/codegangsta/cli` package has been moved to
`github.com/urfave/cli`.
The latest major version of `github.com/urfave/cli` is now v2, which is
incompatible with the version `gomove` expects.
Add Go Modules manifest files with:
$ go mod init
to set a dependency on `github.com/urfave/cli` v1, fixing the build
errors.
Fixes #6.
Diffstat (limited to 'ast.go')
0 files changed, 0 insertions, 0 deletions
