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

build errors while go getting the package #1

Closed
genez opened this issue Jul 14, 2020 · 4 comments
Closed

build errors while go getting the package #1

genez opened this issue Jul 14, 2020 · 4 comments

Comments

@genez
Copy link

genez commented Jul 14, 2020

Hi,
I was trying to go get the package, I get this errors:

C:\Users\user>go get -u -v github.com/gocomply/xsd2go/cli/gocomply_xsd2go
github.com/gocomply/xsd2go (download)
github.com/iancoleman/strcase (download)
github.com/markbates/pkger (download)
github.com/gobuffalo/here (download)
github.com/urfave/cli (download)
github.com/cpuguy83/go-md2man (download)
github.com/cpuguy83/go-md2man/vendor/github.com/shurcooL/sanitized_anchor_name
github.com/iancoleman/strcase
github.com/markbates/pkger/internal/takeon/github.com/markbates/hepa/filters
github.com/cpuguy83/go-md2man/vendor/github.com/russross/blackfriday/v2
github.com/gobuffalo/here
github.com/gocomply/xsd2go/pkg/xsd
github.com/markbates/pkger/here
github.com/markbates/pkger/internal/takeon/github.com/markbates/hepa
github.com/markbates/pkger/pkging
github.com/cpuguy83/go-md2man/md2man
github.com/markbates/pkger/pkging/embed
github.com/markbates/pkger/internal/maps
github.com/urfave/cli
github.com/markbates/pkger/pkging/stdos
github.com/markbates/pkger/pkging/mem
github.com/markbates/pkger
github.com/gocomply/xsd2go/pkg/template
github.com/gocomply/xsd2go/pkg/xsd2go
github.com/gocomply/xsd2go/cli/cmd
# github.com/gocomply/xsd2go/cli/cmd
c:\dev\go\src\github.com\gocomply\xsd2go\cli\cmd\cmd.go:14:15: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in assignment
c:\dev\go\src\github.com\gocomply\xsd2go\cli\cmd\cmd.go:32:43: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
c:\dev\go\src\github.com\gocomply\xsd2go\cli\cmd\cmd.go:32:56: invalid operation: c.Args()[1] (type cli.Args does not support indexing)
c:\dev\go\src\github.com\gocomply\xsd2go\cli\cmd\cmd.go:32:69: invalid operation: c.Args()[2] (type cli.Args does not support indexing)

C:\Users\user>go version
go version go1.14.1 windows/amd64
@isimluk
Copy link
Member

isimluk commented Jul 14, 2020

Thanks!

Reproduced on go version go1.14.3 linux/amd64

@isimluk
Copy link
Member

isimluk commented Jul 14, 2020

As a workaround please git clone this repo and make. Thanks!

@isimluk
Copy link
Member

isimluk commented Jul 14, 2020

Fix is to migrate to cli dependency to v2 ( urfave/cli#921 ) Patches welcome!

@isimluk
Copy link
Member

isimluk commented Aug 28, 2020

Fixed by vendoring current deps.

@isimluk isimluk closed this as completed Aug 28, 2020
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