akamai / cli-common-golang

2 stars 5 forks source link

Getting a list of errors in this package #5

Open smaheshs opened 3 years ago

smaheshs commented 3 years ago

Hi,

I tried the command: go get github.com/akamai/cli-common-golang

However I am getting a long list of errors and unable to go ahead further.

$ go get github.com/akamai/cli-common-golang
# github.com/akamai/cli-common-golang
github.com/akamai/cli-common-golang/common.go:66:18: 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)
github.com/akamai/cli-common-golang/common.go:70:5: unknown field 'EnvVar' in struct literal of type cli.StringFlag
github.com/akamai/cli-common-golang/common.go:72:18: 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)
github.com/akamai/cli-common-golang/common.go:76:5: unknown field 'EnvVar' in struct literal of type cli.StringFlag
github.com/akamai/cli-common-golang/common.go:78:18: 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)
github.com/akamai/cli-common-golang/common.go:81:5: unknown field 'EnvVar' in struct literal of type cli.StringFlag
github.com/akamai/cli-common-golang/common.go:94:16: cannot use commands (type []cli.Command) as type []*cli.Command in assignment
github.com/akamai/cli-common-golang/common.go:97:18: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in assignment:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
github.com/akamai/cli-common-golang/common.go:102:25: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in assignment:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
github.com/akamai/cli-common-golang/common.go:106:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in assignment:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
github.com/akamai/cli-common-golang/common.go:106:15: too many errors

Kindly help.

Thanks.

tommyorndorff commented 3 years ago

I am as well, running go 1.13:

$ go version
go version go1.13 darwin/amd64