Skip to content
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

Go errors trying to build dashing #51

Closed
tvolkert opened this issue Dec 4, 2019 · 3 comments · Fixed by #52
Closed

Go errors trying to build dashing #51

tvolkert opened this issue Dec 4, 2019 · 3 comments · Fixed by #52

Comments

@tvolkert
Copy link
Contributor

tvolkert commented Dec 4, 2019

$ go get -u github.com/technosophos/dashing
# github.com/technosophos/dashing
../go/src/github.com/technosophos/dashing/dashing.go:92:15: cannot use commands() (type []cli.Command) as type []*cli.Command in assignment
../go/src/github.com/technosophos/dashing/dashing.go:102:4: cannot use build (type func(*cli.Context)) as type cli.ActionFunc in field value
../go/src/github.com/technosophos/dashing/dashing.go:104:19: 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)
../go/src/github.com/technosophos/dashing/dashing.go:108:19: 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)
../go/src/github.com/technosophos/dashing/dashing.go:117:4: cannot use update (type func(*cli.Context)) as type cli.ActionFunc in field value
../go/src/github.com/technosophos/dashing/dashing.go:119:19: 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)
../go/src/github.com/technosophos/dashing/dashing.go:123:19: 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)
../go/src/github.com/technosophos/dashing/dashing.go:131:4: unknown field 'ShortName' in struct literal of type cli.Command
../go/src/github.com/technosophos/dashing/dashing.go:133:4: cannot use create (type func(*cli.Context)) as type cli.ActionFunc in field value
../go/src/github.com/technosophos/dashing/dashing.go:135:19: 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)
../go/src/github.com/technosophos/dashing/dashing.go:135:19: too many errors
$ go version
go version go1.13.4 darwin/amd64

(also tried against Go version 1.12.7)

@tvolkert
Copy link
Contributor Author

tvolkert commented Dec 4, 2019

@technosophos

@tvolkert
Copy link
Contributor Author

tvolkert commented Dec 4, 2019

@lynncyrin, were there updates to the cli API that introduced these errors?

@coilysiren
Copy link

@tvolkert this change was made for v2, please do either of the following things:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants