Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions - small correction suggested #18

Open
bluebob opened this issue Mar 3, 2020 · 0 comments
Open

Build instructions - small correction suggested #18

bluebob opened this issue Mar 3, 2020 · 0 comments

Comments

@bluebob
Copy link

bluebob commented Mar 3, 2020

Following the build instructions gives the following error:

# 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:89:16: cannot use commands (type []cli.Command) as type []*cli.Command in assignment
github.com/akamai/cli-common-golang/common.go:92: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:97: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:101: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:145:12: cannot use ctx.App.Commands (type []*cli.Command) as type []cli.Command in assignment
github.com/akamai/cli-common-golang/common.go:149:13: cannot use ctx.Command.Subcommands (type []*cli.Command) as type []cli.Command in assignment
github.com/akamai/cli-common-golang/common.go:149:13: too many errors

This is on Mac Go v1.13.

Ive subsequently made a small change - adding the -d switch to first step in the source build instructions so that the go get only downloads the files. The rest of the build process, starting with dep ensure, then works fine. Can I suggest this as a tiny doc update please?

@bluebob bluebob changed the title Build instructions fail Build instructions - small correction suggested Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant