Skip to content

Commit

Permalink
Link pandoc-cli version to pandoc version.
Browse files Browse the repository at this point in the history
Henceforth pandoc-cli's version will be synchronized with pandoc's, and
pandoc-cli will depend on an exact pandoc version.

This will avoid confusion by ensuring that `cabal install pandoc-cli-X.Y.Z`
installs pandoc version X.Y.Z.  It will make things more straightforward
for upstream packagers (see #9232).

Note also that the man pages included in this package are for a specific
pandoc version.

This scheme does not follow the Haskell PVP, but that should cause no
harm, because this package does not expose a library.
  • Loading branch information
jgm committed Dec 9, 2023
1 parent c2c45f1 commit 35d44bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pandoc-cli/pandoc-cli.cabal
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: pandoc-cli
version: 0.1.1.1
version: 3.1.9
build-type: Simple
license: GPL-2.0-or-later
license-file: COPYING.md
Expand Down Expand Up @@ -68,7 +68,9 @@ executable pandoc
hs-source-dirs: src
main-is: pandoc.hs
buildable: True
build-depends: pandoc >= 3.0,
-- Note: we always link to an exact version of pandoc, with the
-- same version as this package:
build-depends: pandoc == 3.1.9,
text
other-modules: PandocCLI.Lua
, PandocCLI.Server
Expand All @@ -87,7 +89,7 @@ executable pandoc

if flag(lua)
build-depends: hslua-cli >= 1.4.1 && < 1.5,
pandoc-lua-engine >= 0.2 && < 0.3,
pandoc-lua-engine >= 0.2.1 && < 0.3,
temporary >= 1.1 && < 1.4
hs-source-dirs: lua
else
Expand Down

0 comments on commit 35d44bb

Please sign in to comment.