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

undefined: blackfriday with govendor #756

Closed
gale93 opened this issue Sep 20, 2017 · 4 comments
Closed

undefined: blackfriday with govendor #756

gale93 opened this issue Sep 20, 2017 · 4 comments

Comments

@gale93
Copy link

gale93 commented Sep 20, 2017

iris: 8.4.2
go: 1.9

Using iris with govendor package, I can't get it run locally ( via go run .. ) and remotly ( using heroku )

The error is the same and it is:

vendor/github.com/kataras/iris/context/context.go:2198:9: undefined: blackfriday.Run

Steps to reproduce:
-> Create new folder
-> Add in it main.go ( hello world tutorial )
-> govendor init
-> govendor fetch github.com/kataras/iris
-> go run main.go

I can't say much more, I don't know if i just missing something or if it's not a iris problem and i should open an issue on govendor.

@gale93
Copy link
Author

gale93 commented Sep 21, 2017

Oh. I see it now, iris use a self-modified version of blackfriday. All I have to do is find a way to specify to govendor to use that version instead of the original one.

@gale93
Copy link
Author

gale93 commented Sep 21, 2017

yep! Solved.
For unfortunate guys that'll have this problem, to correctly fetch the package's modified dependecies just add the recursive tag -tree, ex:
govendor fetch -tree github.com/kataras/iris

@gale93 gale93 closed this as completed Sep 21, 2017
@kataras
Copy link
Owner

kataras commented Oct 1, 2017

Thanks @gale93 I've never used govendor before, this is a good tip for newcomers as well!

@prabowomurti
Copy link

I am still facing the issue, trying to edit the line to :

buf := blackfriday.MarkdownCommon(markdownB)

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

3 participants