sachaos / todoist

Todoist CLI Client. I ❤️ Todoist and CLI.
MIT License
1.48k stars 105 forks source link

Can't install on ubuntu 19.10 #109

Open MAWSpitau opened 4 years ago

MAWSpitau commented 4 years ago

Hey there,

i tried to install this tool, but it does not work.

$ go get github.com/sachaos/todoist                                                                                                                                                                          
# github.com/sachaos/todoist
go/src/github.com/sachaos/todoist/close.go:14:16: cannot range over c.Args() (type cli.Args)
go/src/github.com/sachaos/todoist/completed.go:30:6: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/sachaos/todoist/delete.go:13:16: cannot range over c.Args() (type cli.Args)
go/src/github.com/sachaos/todoist/format.go:50:6: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/sachaos/todoist/format.go:53:6: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/sachaos/todoist/format.go:99:6: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/sachaos/todoist/labels.go:18:6: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/sachaos/todoist/list.go:62:6: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/sachaos/todoist/main.go:85:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/sachaos/todoist/main.go:89:15: cannot use cli.BoolFlag literal (type  cli.BoolFlag) as type cli.Flag in array or slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/sachaos/todoist/main.go:89:15: too many errors
$ go version
go version go1.12.10 linux/amd64

What am I doing wrong?

Thanks MAW

pniedzwiedzinski commented 4 years ago

I reproduced it in docker with ubuntu:19:10 image. It's strange because when I cloned the repo and run go build it works. It looks like the problem is with go get.