zephinzer / godev

Golang development tool that supports project bootstrap, live-reload (tests + application), and auto dependency retrieval based on Go Modules
https://getgo.dev
MIT License
198 stars 30 forks source link

Unable to install with go get #42

Open mohanraj-r opened 4 years ago

mohanraj-r commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

I experienced the same thing

$ go version
go version go1.13.5 linux/amd64
csunolcmp commented 3 years ago

Same error in go 1.13