matcornic / hermes

Golang package that generates clean, responsive HTML e-mails for sending transactional mail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined: blackfriday.Run

AlexDunmow opened this issue · comments

New install:

vendor/github.com/matcornic/hermes/hermes.go:76:23: undefined: blackfriday.Run

Seems blackfriday API has changed:

// ToHTML converts Markdown to HTML
    func (c Markdown) ToHTML() template.HTML {
            return template.HTML(blackfriday.Run([]byte(string(c))))
    }

Which Hermes version do you use (tag or git hash) ?

Edit: you may have used dep, which downloads the latest tag (which was 1.1.0 in your situation). I just created a new release (1.1.1) that should fix the problem, mentioned in #30

commented

is this related?

# ./app/vendor/github.com/matcornic/hermes
vendor/github.com/matcornic/hermes/hermes.go:76:23: undefined: blackfriday.MarkdownCommon
(error exit: exit status 2)

Find out that vgo for some reason installs v1.1.0 version default and build fails with this error. Vgo can't find v1.1.1, but pointing to specific commit or master branch solves a problem.

@xdefrag probably because I mixed formats in the tag names. I create a new v1.1.1 tag besides the 1.1.1

Could you try again ?

@matcornic Yep, it's worked. Thanks.