abiosoft / caddy-json-schema

JSON schema generator for Caddy v2
Apache License 2.0
135 stars 4 forks source link

smallstep/cli too many errors #1

Closed tullo closed 4 years ago

tullo commented 4 years ago

GO111MODULE=off go get -u -v github.com/abiosoft/caddy-json-schema

github.com/smallstep/cli/usage
# github.com/smallstep/cli/usage
golang/src/github.com/smallstep/cli/usage/help.go:28:18: 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)
golang/src/github.com/smallstep/cli/usage/help.go:32:18: 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)
golang/src/github.com/smallstep/cli/usage/help.go:36:18: 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)
golang/src/github.com/smallstep/cli/usage/help.go:40:16: 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)
golang/src/github.com/smallstep/cli/usage/help.go:44:16: 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)
golang/src/github.com/smallstep/cli/usage/help.go:68:14: invalid argument args (type cli.Args) for len
golang/src/github.com/smallstep/cli/usage/help.go:73:28: cannot slice args (type cli.Args)
golang/src/github.com/smallstep/cli/usage/help.go:76:13: cannot use cmd (type *cli.Command) as type cli.Command in assignment
golang/src/github.com/smallstep/cli/usage/help.go:85:71: cannot use args (type cli.Args) as type []string in argument to strings.Join
golang/src/github.com/smallstep/cli/usage/help.go:86:79: cannot slice args (type cli.Args)
golang/src/github.com/smallstep/cli/usage/help.go:86:79: too many errors
abiosoft commented 4 years ago

What exactly are you trying to achieve? This is not a standalone app, rather it is meant to be used as a Caddy plugin as specified in the docs and Go modules is a requirement.

I just tried this with caddy v2.1.0 and I had no issues.

xcaddy build v2.1.0 \
    --with github.com/abiosoft/caddy-json-schema

I will be closing this. If this is proven to be an issue, I'll re-open.

tullo commented 4 years ago

Okay, I'm not much into caddy plugins. I just expected to be able to at least do a plain go build - which failed. So I moved on.