mdfmt icon indicating copy to clipboard operation
mdfmt copied to clipboard

undefined: parser.ReadFrom

Open pbnj opened this issue 7 years ago • 4 comments

Can't seem to install mdfmt. Receiving error:

go/src/github.com/moorereason/mdfmt/main.go:64:15: undefined: parser.ReadFrom

pbnj avatar Nov 24 '18 06:11 pbnj

Seems that hugo's parser API has changed and parser.ReadFrom no longer exists. Unfortunately, I don't have the bandwidth to dig into this further or contribute a fix at the moment.

pbnj avatar Nov 24 '18 06:11 pbnj

Thanks for the report. You should be able to build mdfmt now since I've added go modules (thanks for that report, too). I've pinned the hugo module to a version prior to the API change. I'll leave this issue open as a reminder to update to the latest hugo API.

moorereason avatar Nov 28 '18 04:11 moorereason

still getting this error. i used to have a workaround recipe but seem to have misplaced it

go get -u github.com/moorereason/mdfmt

# github.com/moorereason/mdfmt
go/src/github.com/moorereason/mdfmt/main.go:64:15: undefined: parser.ReadFrom

idcrook avatar Feb 05 '20 17:02 idcrook

something like this seems to have worked

GO111MODULE=on go get -v github.com/moorereason/mdfmt
go version go1.12.10 linux/amd64

idcrook avatar Feb 05 '20 21:02 idcrook