whyrusleeping / gx-go

gx subtool for golang
MIT License
80 stars 28 forks source link

go get error #62

Open xiedeacc opened 4 years ago

xiedeacc commented 4 years ago

ubuntu 18.04, go 1.14.4

github.com/whyrusleeping/gx-go

../src/github.com/whyrusleeping/gx-go/link.go:48:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/link.go:52:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/link.go:56:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/main.go:137:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/main.go:175:2: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in field value ../src/github.com/whyrusleeping/gx-go/main.go:196:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/main.go:200:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/main.go:658:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/main.go:662:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal: cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/main.go:798:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) ../src/github.com/whyrusleeping/gx-go/main.go:200:15: too many errors

4others commented 3 years ago

I encounter the same error. Ubuntu 20.04