commonspeak2
commonspeak2 copied to clipboard
has no field or method GlobalBool
Default installation is not working.
$ go get github.com/assetnote/commonspeak2
github.com/assetnote/commonspeak2/command/deletedfiles
go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:33:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:34:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:35:14: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:36:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString) go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:37:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
github.com/assetnote/commonspeak2/command/routes
go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:37:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:38:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:39:14: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:40:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString) go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:41:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
github.com/assetnote/commonspeak2/command/subdomains
go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:32:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:33:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:34:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString) go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:35:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
github.com/assetnote/commonspeak2/command/wordswithext
go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:31:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:32:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool) go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:33:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString) go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:34:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
I'm also having the same issue. I try different Go versions but same error occurs.
Edit glide.yaml and replace
- package: "github.com/urfave/cli"
with:
- package: "github.com/urfave/cli"
version: "^1.22"
It won't compile but it will fix this specific error.
You need to use glide (https://github.com/Masterminds/glide) to get the correct versions of the dependencies.
glide install
go install .
go get tries to use github.com/urfave/cli at HEAD, which has broken compatibility with what's in use here.