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

Hermes 1.2.0 is using Blackfriday V2 which uses modules dependency

fmonod opened this issue · comments

I'm currently using Hermes on a project that has some dependencies issues and cannot be used with modules at the moment.

Thing is, this hermes version supposedly supports the old dep system, but the ToHTML method (line 76) on hermes.go uses the blackfriday/v2 dependency which only works with modules and I can't make a proper build of my project without commenting it.

As a workaround, you could probably use a "replace" in your go.mod to handle this issue ?

Something like "replace gopkg.in/russross/blackfriday.v2 v2.1.0 => github.com/russross/blackfriday/v2 v2.1.0"

It seams to work on my side