This repository was archived by the owner on Jan 17, 2021. It is now read-only.
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
go
install command has errors #137
Closed
Description
Hi,
Following the steps on OS X to install the project:
- Open a terminal
- Run
go get -u go.coder.com/sshcode
I see the following errors: after sshcode fails to install
# go.coder.com/sshcode
../go/src/go.coder.com/sshcode/main.go:28:14: cannot use &rootCmd literal (type *rootCmd) as type cli.Command in argument to cli.RunRoot:
*rootCmd does not implement cli.Command (wrong type for Run method)
have Run(*flag.FlagSet)
want Run(*pflag.FlagSet)
../go/src/go.coder.com/sshcode/main.go:31:5: cannot use new(rootCmd) (type *rootCmd) as type interface { RegisterFlags(*pflag.FlagSet); Run(*pflag.FlagSet); Spec() cli.CommandSpec } in assignment:
*rootCmd does not implement interface { RegisterFlags(*pflag.FlagSet); Run(*pflag.FlagSet); Spec() cli.CommandSpec } (wrong type for RegisterFlags method)
have RegisterFlags(*flag.FlagSet)
want RegisterFlags(*pflag.FlagSet)
$ go version
go version go1.12.9 darwin/amd64
$ which sshcode
sshcode not found
Metadata
Metadata
Assignees
Labels
No labels