Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't compile (on newer Go versions?) #7

Closed
mohag opened this issue Feb 3, 2022 · 2 comments
Closed

Won't compile (on newer Go versions?) #7

mohag opened this issue Feb 3, 2022 · 2 comments

Comments

@mohag
Copy link

mohag commented Feb 3, 2022

# go install github.com/crackcomm/cloudflare/cf
# github.com/crackcomm/cloudflare/cf/cmd
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:16:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:20:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:24:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:28:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:32:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:36:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:41:8: cannot use func literal (type func(*cli.Context)) as type cli.ActionFunc in field value
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:19:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:23:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:27:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
        cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:27:15: too many errors

(That is on Ubuntu 18.04's ancient Go 1.10) (I probably need to try newer versions as well though)

Possibly related to this: https://github.com/urfave/cli/blob/master/docs/migrate-v1-to-v2.md (Which would be a library issue rather than a Go version one) Via this

@crackcomm
Copy link
Owner

Hey, thanks for the report but this software is no longer maintained since cloudflare created their own client.

@mohag
Copy link
Author

mohag commented Feb 3, 2022

Thanks. (The CLI tool from here was useful for doing bulk operations)

This seems to be their library: https://github.com/cloudflare/cloudflare-go/
This seems to be their CLI tool: https://github.com/cloudflare/cloudflare-go/tree/master/cmd/flarectl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants