Open jlynet opened 5 years ago
I ran into the same problem. Worked around it by running go get github.com/russross/blackfriday/v2@3e56bb68c8876389c631e9e318ce3c092a0906db
, where 3e56bb68c8876389c631e9e318ce3c092a0906db
is the most recent git commit on the v2 branch, then using the import "github.com/russross/blackfriday/v2".
I just added another line in go.mod
after the require
section:
require gopkg.in/russross/blackfriday.v2 v2.0.1
replace gopkg.in/russross/blackfriday.v2 => github.com/russross/blackfriday/v2 v2.0.1
+1
$ go get gopkg.in/russross/blackfriday.v2
go: gopkg.in/russross/blackfriday.v2 upgrade => v2.0.1
go get: gopkg.in/russross/blackfriday.v2@v2.0.1: parsing go.mod:
module declares its path as: github.com/russross/blackfriday/v2
but was required as: gopkg.in/russross/blackfriday.v2
imports gopkg.in/russross/blackfriday.v2: cannot find module providing package gopkg.in/russross/blackfriday.v2
go version go1.13.1 windows/amd64