Skip to content

Commit

Permalink
add minimal go.mod
Browse files Browse the repository at this point in the history
The intention is to make it so that it's possible to import and use
this package in module mode (in addition to the well-supported
GOPATH mode), and have it build successfully. That doesn't happen
automatically because the latest version of the module that provides
the github.com/russross/blackfriday package (the v1 API) is an
v2.0.0+incompatible version that provides the v2 API, which is not
compatible.

Use the latest pseudo-version of blackfriday v1 API. Can't use the
latest tagged release version v1.5.2 because it doesn't include an
important bug fix for russross/blackfriday#495.

Only specify the blackfriday version in go.mod; others are unspecified
to avoid the added burden of maintaining and updating them. The latest
version, whichever they are, are fully supported, just like in GOPATH
mode.

Fixes #47
  • Loading branch information
dmitshur committed Mar 24, 2019
1 parent 9de3a08 commit 345315f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/shurcooL/markdownfmt

require github.com/russross/blackfriday v1.5.3-0.20190124082335-a477dd164691

0 comments on commit 345315f

Please sign in to comment.