russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.44k stars 599 forks source link

Does it not support go mod mode? #572

Open jlynet opened 5 years ago

jlynet commented 5 years ago

imports gopkg.in/russross/blackfriday.v2: cannot find module providing package gopkg.in/russross/blackfriday.v2

go version go1.13.1 windows/amd64

dustmop commented 4 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".

mwat56 commented 4 years ago

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
Antonboom commented 4 years ago

+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