todoist icon indicating copy to clipboard operation
todoist copied to clipboard

Can't install on ubuntu 19.10

Open MAWSpitau opened this issue 4 years ago • 1 comments

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

MAWSpitau avatar Jan 06 '20 05:01 MAWSpitau

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.

pniedzwiedzinski avatar Mar 26 '20 21:03 pniedzwiedzinski