Skip to content

Error on compile #1

@duckunix

Description

@duckunix

Ubuntu 20.04, fully patched
Go v 1.15.2

go get github.com/erikh/calwarrior
# github.com/erikh/calwarrior
../go/src/github.com/erikh/calwarrior/main.go:16:5: app.Author undefined (type *cli.App has no field or method Author)
../go/src/github.com/erikh/calwarrior/main.go:21:19: cannot use cli.DurationFlag literal (type cli.DurationFlag) as type cli.Flag in slice literal:
        cli.DurationFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/erikh/calwarrior/main.go:26:22: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal:
        cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/erikh/calwarrior/main.go:29:28: implicit assignment of unexported field 'slice' in cli.StringSlice literal
../go/src/github.com/erikh/calwarrior/main.go:29:28: cannot use "calendar" (type string) as type []string in field value
../go/src/github.com/erikh/calwarrior/main.go:29:28: too few values in cli.StringSlice literal
../go/src/github.com/erikh/calwarrior/main.go:42:14: ctx.GlobalStringSlice undefined (type *cli.Context has no field or method GlobalStringSlice)
../go/src/github.com/erikh/calwarrior/main.go:78:18: ctx.GlobalDuration undefined (type *cli.Context has no field or method GlobalDuration)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions