Skip to content

Unable to install with go get  #42

@mohanraj-r

Description

@mohanraj-r

Unable to install with go get for go1.13.4. Results in following error:

$ go get -v -u github.com/zephinzer/godev
github.com/zephinzer/godev (download)
github.com/fsnotify/fsnotify (download)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
golang.org/x/sys (download)
github.com/kballard/go-shellquote (download)
github.com/sirupsen/logrus (download)
github.com/stretchr/testify (download)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at //gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/urfave/cli (download)
github.com/cpuguy83/go-md2man (download)
github.com/zephinzer/godev
# github.com/zephinzer/godev
/Users/mraj/go/src/github.com/zephinzer/godev/cli.go:28:20: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in assignment
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:9:23: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:18:23: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:27:23: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:36:28: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in return argument:
        cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:44:28: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in return argument:
        cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:52:23: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:61:23: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:70:25: cannot use cli.DurationFlag literal (type cli.DurationFlag) as type cli.Flag in return argument:
        cli.DurationFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:80:3: unknown field 'EnvVar' in struct literal of type cli.StringFlag
/Users/mraj/go/src/github.com/zephinzer/godev/flags.go:80:3: too many errors

$ go version
go version go1.13.4 darwin/amd64

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