rabbitmq-cli-consumer icon indicating copy to clipboard operation
rabbitmq-cli-consumer copied to clipboard

Installation via Go get fails

Open sgohl opened this issue 5 years ago • 0 comments

This used to work for ages, but now go get fails:

~ > docker run --rm golang go get github.com/corvus-ch/rabbitmq-cli-consumer
# github.com/corvus-ch/rabbitmq-cli-consumer
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:37:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:40:3: unknown field 'EnvVar' in struct literal of type cli.StringFlag
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:42:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:46:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:50:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:54:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:58:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:62:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:66:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:70:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/corvus-ch/rabbitmq-cli-consumer/main.go:70:16: too many errors

any ideas?

sgohl avatar Jun 26 '20 17:06 sgohl