Skip to content
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

Description

@marclundgren

Hi,

Following the steps on OS X to install the project:

  1. Open a terminal
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions