commonspeak2 icon indicating copy to clipboard operation
commonspeak2 copied to clipboard

has no field or method GlobalBool

Open riramar opened this issue 5 years ago • 3 comments

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)

riramar avatar Feb 23 '20 15:02 riramar

I'm also having the same issue. I try different Go versions but same error occurs.

czaur avatar Feb 23 '20 19:02 czaur

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.

nmalcolm avatar Apr 16 '20 12:04 nmalcolm

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.

cqsd avatar Apr 28 '20 06:04 cqsd