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

Wrong dependencies #512

Closed
dink10 opened this issue Sep 10, 2019 · 5 comments
Closed

Wrong dependencies #512

dink10 opened this issue Sep 10, 2019 · 5 comments

Comments

@dink10
Copy link

dink10 commented Sep 10, 2019

While go get -u github.com/swaggo/swag/cmd/swag

github.com/cpuguy83/go-md2man/md2man ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:11:16: undefined: blackfriday.EXTENSION_NO_INTRA_EMPHASIS ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:12:16: undefined: blackfriday.EXTENSION_TABLES ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:13:16: undefined: blackfriday.EXTENSION_FENCED_CODE ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:14:16: undefined: blackfriday.EXTENSION_AUTOLINK ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:15:16: undefined: blackfriday.EXTENSION_SPACE_HEADERS ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:16:16: undefined: blackfriday.EXTENSION_FOOTNOTES ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:17:16: undefined: blackfriday.EXTENSION_TITLEBLOCK ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/md2man.go:19:29: too many arguments to conversion to blackfriday.Markdown: blackfriday.Markdown(doc, renderer, extensions) ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/roff.go:19:9: cannot use &roffRenderer literal (type *roffRenderer) as type blackfriday.Renderer in return argument: *roffRenderer does not implement blackfriday.Renderer (missing RenderFooter method) ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/roff.go:102:11: undefined: blackfriday.LIST_TYPE_ORDERED ../../pkg/mod/github.com/cpuguy83/go-md2man@v1.0.10/md2man/roff.go:102:11: too many errors

But it works without -u
It doesn't mean which go version I have
go version go1.13 darwin/amd64
go version go1.12.7 darwin/amd64

@ubogdan
Copy link
Contributor

ubogdan commented Sep 10, 2019

It woks like a charm .

$ go version
go version go1.12.7 linux/amd64
$ go get -u github.com/swaggo/swag/cmd/swag

If you look closer to swagger go.sum file you will notice there is no direct or indirect dependency to "github.com/cpuguy83/go-md2man" or "github.com/russross/blackfriday".
I'm guessing is related somehow to your GO enviroment variables ( especialy GOPATH) , but it's a guess...

@Terminator637
Copy link

Yes, got the same issue.

@Terminator637
Copy link

Helped this adding to end of go.mod file:

replace github.com/urfave/cli v1.22.0 => github.com/urfave/cli v1.21.0 

Taken from there: aws/aws-lambda-go#231

@ubogdan
Copy link
Contributor

ubogdan commented Sep 11, 2019

This is realy interesting because swag go.mod require cli 1.20.0

swag/go.mod

Line 12 in d74ed70

github.com/urfave/cli v1.20.0

Can you please paste your env output and also the path where you are running go get

@easonlin404
Copy link
Member

please use the latest version v1.6.5 and try again.

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

4 participants