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

Unable to install with go get #42

Open
mohanraj-r opened this issue Nov 28, 2019 · 3 comments
Open

Unable to install with go get #42

mohanraj-r opened this issue Nov 28, 2019 · 3 comments

Comments

@mohanraj-r
Copy link

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
@mohanraj-r
Copy link
Author

Also tested with latest golang docker image and got the same error

$ docker run -it golang
...
Status: Downloaded newer image for golang:latest

root@1a8a2de474fe:/go# go version
go version go1.13.4 linux/amd64

root@1a8a2de474fe:/go# 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/cpuguy83/go-md2man/vendor/github.com/shurcooL/sanitized_anchor_name
github.com/kballard/go-shellquote
golang.org/x/sys/unix
github.com/stretchr/testify/vendor/github.com/davecgh/go-spew/spew
github.com/stretchr/testify/vendor/github.com/pmezard/go-difflib/difflib
gopkg.in/yaml.v2
github.com/cpuguy83/go-md2man/vendor/github.com/russross/blackfriday/v2
github.com/cpuguy83/go-md2man/md2man
github.com/urfave/cli
github.com/fsnotify/fsnotify
github.com/sirupsen/logrus
github.com/stretchr/testify/assert
github.com/zephinzer/godev
# github.com/zephinzer/godev
src/github.com/zephinzer/godev/cli.go:28:20: cannot use []cli.Command literal (type []cli
.Command) as type []*cli.Command in assignment
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)
src/github.com/zephinzer/godev/flags.go:18:23: cannot use cli.StringFlag literal (type cl
i.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/zephinzer/godev/flags.go:27:23: cannot use cli.StringFlag literal (type cl
i.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/zephinzer/godev/flags.go:36:28: cannot use cli.StringSliceFlag literal (ty
pe cli.StringSliceFlag) as type cli.Flag in return argument:
        cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receive
r)
src/github.com/zephinzer/godev/flags.go:44:28: cannot use cli.StringSliceFlag literal (ty
pe cli.StringSliceFlag) as type cli.Flag in return argument:
        cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receive
r)
src/github.com/zephinzer/godev/flags.go:52:23: cannot use cli.StringFlag literal (type cl
i.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/zephinzer/godev/flags.go:61:23: cannot use cli.StringFlag literal (type cl
i.StringFlag) as type cli.Flag in return argument:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
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)
src/github.com/zephinzer/godev/flags.go:80:3: unknown field 'EnvVar' in struct literal of
 type cli.StringFlag
src/github.com/zephinzer/godev/flags.go:80:3: too many errors

@tempcke
Copy link

tempcke commented May 7, 2020

I experienced the same thing

$ go version
go version go1.13.5 linux/amd64

@csunolcmp
Copy link

csunolcmp commented Oct 13, 2020

Same error in go 1.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants