Skip to content

Compile errors related to urfave/cli #297

@drboone

Description

@drboone

Issue type

  • Bug report

cli53 version (cli53 --version)

Current from git

OS / Platform

westsidestory 158 $ go version
go version go1.13.5 solaris/amd64

Steps to reproduce

export GO15VENDOREXPERIMENT=1
go get -v github.com/barnybug/cli53/cmd/cli53

Expected behaviour

Compiled cli53 binary.

Actual behaviour

Compiler errors.

westsidestory 128 $ go get -v github.com/barnybug/cli53/cmd/cli53
github.com/barnybug/cli53 (download)
created GOPATH=/root/go; see 'go help gopath'
github.com/aws/aws-sdk-go (download)
github.com/jmespath/go-jmespath (download)
github.com/miekg/dns (download)
Fetching https://golang.org/x/crypto/ed25519?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ed25519?go-get=1 (status code 200)
get "golang.org/x/crypto/ed25519": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ed25519?go-get=1
get "golang.org/x/crypto/ed25519": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
Fetching https://golang.org/x/net/ipv4?go-get=1
Parsing meta tags from https://golang.org/x/net/ipv4?go-get=1 (status code 200)
get "golang.org/x/net/ipv4": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/ipv4?go-get=1
get "golang.org/x/net/ipv4": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Fetching https://golang.org/x/sys/unix?go-get=1
Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
Fetching https://golang.org/x/net/ipv6?go-get=1
Parsing meta tags from https://golang.org/x/net/ipv6?go-get=1 (status code 200)
get "golang.org/x/net/ipv6": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/ipv6?go-get=1
get "golang.org/x/net/ipv6": verifying non-authoritative meta tag
github.com/urfave/cli (download)
github.com/cpuguy83/go-md2man (download)
github.com/barnybug/cli53
# github.com/barnybug/cli53
go/src/github.com/barnybug/cli53/bind.go:42:14: undefined: dns.ParseZone
go/src/github.com/barnybug/cli53/main.go:22: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/barnybug/cli53/main.go:26: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/barnybug/cli53/main.go:30: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/barnybug/cli53/main.go:34: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/barnybug/cli53/main.go:49:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in append:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/barnybug/cli53/main.go:61:11: invalid argument c.Args() (type cli.Args) for len
go/src/github.com/barnybug/cli53/main.go:78:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in append:
        cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/barnybug/cli53/main.go:105:11: invalid argument c.Args() (type cli.Args) for len
go/src/github.com/barnybug/cli53/main.go:117:17: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in append:
        cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/barnybug/cli53/main.go:117:17: too many errors

Have you checked if the documentation has the information you require?

yes

Could you contribute a fix or help testing with this issue?

I'm not a go programmer, but am happy to help test.
Googling suggests a breaking change in urfave/cli? Or maybe that's old news.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions