I'm citing from https://hydra.nixos.org/build/94680819:
~~~
latex
writer
basic: OK (0.28s)
tables: OK (0.08s)
lhs to normal: FAIL (0.08s)
------------------------------------------------------------------------
--- lhs-test.latex
+++ /build/pandoc-2.7.3/dist/build/pandoc/pandoc --data-dir=../data --quiet lhs-test.native --wrap=preserve -r native -s -w latex
+ 97 \OtherTok{unsplit ::}\NormalTok{ (}\DataTypeTok{Arrow}\NormalTok{ a) }\OtherTok{=>}\NormalTok{ (b }\OtherTok{{-}>}\NormalTok{ c }\OtherTok{{-}>}\NormalTok{ d) }\OtherTok{{-}>}\NormalTok{ a (b, c) d}
- 97 \OtherTok{unsplit ::}\NormalTok{ (}\DataTypeTok{Arrow}\NormalTok{ a) }\OtherTok{=>}\NormalTok{ (b }\OtherTok{->}\NormalTok{ c }\OtherTok{->}\NormalTok{ d) }\OtherTok{->}\NormalTok{ a (b, c) d}
+ 99 \CommentTok{{-}{-} arr (\textbackslash{}op (x,y) {-}> x \textasciigrave{}op\textasciigrave{} y)}
- 99 \CommentTok{-- arr (\textbackslash{}op (x,y) -> x `op` y)}
------------------------------------------------------------------------
lhs to lhs: OK (0.07s)
reader
basic: OK (0.20s)
lhs: OK (0.06s)
~~~
That's from changes in skylighting 0.8.1.1. You can avoid it by adding a constraint to skylighting 0.8.1.
Next pandoc release will simply require skylighting 0.8.1.1, but I'm not sure what can be done about this one.
I could add a Hackage revision, I suppose, constraining to skylighting >= 0.8.1.1.
I don't think that helps - since this occurs with skylighting-0.8.1.1.
(I am reproducing in the Stackage Nightly build.)
And see https://hydra.nixos.org/build/94680819#tabs-build-deps from peti's report.
Oh, right. The master branch has tests adjusted for skylighting 0.8.1.1 but the 2.7.3 release has tests adjusted for skylighting 0.8.1. We'd need to add a constraint skylighting == 0.8.1 to the metadata for the release to ensure that tests pass. Probably worth doing that, right?
Perhaps but currently Stackage Nightly has 2.7.3 and 0.8.1.1, I believe: a revision would be more correct I suppose
So would a revision cause problems with stackage?
I am not entirely sure, but
https://www.stackage.org/lts-14.7/package/skylighting-0.8.2
https://www.stackage.org/lts-14.8/package/skylighting-0.8.2.1
The safest would be to release a newer pandoc-2.7.x
I plan to release pandoc 2.8 in the next couple weeks. That should take care of it.
pandoc 2.7.4 test log:Test suite log:
...
5627.md
#1: FAIL (0.02s)
test/Tests/Command.hs:66:
------------------------------------------------------------------------
--- expected
+++ pandoc -t html
+ 7 <div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a>--><span class="co"><!--<script>alert('Escaped!')</script></span></span></code></pre></div>
+ 8 <div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true"></a>Something</span></code></pre></div>
- 7 <div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1"></a>--><span class="co"><!--<script>alert('Escaped!')</script></span></span></code></pre></div>
- 8 <div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1"></a>Something</span></code></pre></div>
------------------------------------------------------------------------
#2: FAIL (0.03s)
test/Tests/Command.hs:66:
------------------------------------------------------------------------
--- expected
+++ pandoc -t html
+ 7 <div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a>--><span class="co"><!--<script>alert('Escaped!')</script></span></span></code></pre></div>
+ 8 <div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true"></a>Something</span></code></pre></div>
- 7 <div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1"></a>--><span class="co"><!--<script>alert('Escaped!')</script></span></span></code></pre></div>
- 8 <div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1"></a>Something</span></code></pre></div>
------------------------------------------------------------------------
...
5650.md
#1: FAIL (0.01s)
test/Tests/Command.hs:66:
------------------------------------------------------------------------
--- expected
+++ pandoc --id-prefix foo
+ 1 <div class="sourceCode" id="foocb1"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foocb1-1"><a href="#foocb1-1" aria-hidden="true"></a>a</span>
+ 2 <span id="foocb1-2"><a href="#foocb1-2" aria-hidden="true"></a>b</span></code></pre></div>
- 1 <div class="sourceCode" id="foocb1"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foocb1-1"><a href="#foocb1-1"></a>a</span>
- 2 <span id="foocb1-2"><a href="#foocb1-2"></a>b</span></code></pre></div>
------------------------------------------------------------------------
#2: FAIL (0.02s)
test/Tests/Command.hs:66:
------------------------------------------------------------------------
--- expected
+++ pandoc --id-prefix foo
+ 1 <div class="sourceCode" id="foobar"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foobar-1"><a href="#foobar-1" aria-hidden="true"></a>a</span>
+ 2 <span id="foobar-2"><a href="#foobar-2" aria-hidden="true"></a>b</span></code></pre></div>
- 1 <div class="sourceCode" id="foobar"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foobar-1"><a href="#foobar-1"></a>a</span>
- 2 <span id="foobar-2"><a href="#foobar-2"></a>b</span></code></pre></div>
------------------------------------------------------------------------
5936.md
...
lhs to normal: FAIL (0.04s)
------------------------------------------------------------------------
--- lhs-test.latex
+++ /build/pandoc-2.9.1.1/dist/build/pandoc/pandoc --data-dir=../data --quiet lhs-test.native --wrap=preserve -r native -s -w latex
+ 98 \OtherTok{unsplit ::}\NormalTok{ (}\DataTypeTok{Arrow}\NormalTok{ a) }\OtherTok{=\textgreater{}}\NormalTok{ (b }\OtherTok{{-}\textgreater{}}\NormalTok{ c }\OtherTok{{-}\textgreater{}}\NormalTok{ d) }\OtherTok{{-}\textgreater{}}\NormalTok{ a (b, c) d}
- 98 \OtherTok{unsplit ::}\NormalTok{ (}\DataTypeTok{Arrow}\NormalTok{ a) }\OtherTok{=>}\NormalTok{ (b }\OtherTok{{-}>}\NormalTok{ c }\OtherTok{{-}>}\NormalTok{ d) }\OtherTok{{-}>}\NormalTok{ a (b, c) d}
+ 100 \CommentTok{{-}{-} arr (\textbackslash{}op (x,y) {-}\textgreater{} x \textasciigrave{}op\textasciigrave{} y)}
- 100 \CommentTok{{-}{-} arr (\textbackslash{}op (x,y) {-}> x \textasciigrave{}op\textasciigrave{} y)}
------------------------------------------------------------------------
lhs to lhs: OK (0.03s)
reader
basic: OK (0.08s)
lhs: OK (0.02s)
html
writer
basic: OK (0.12s)
tables: OK (0.04s)
basic: OK (0.15s)
tables: OK (0.03s)
lhs to normal: FAIL (0.04s)
------------------------------------------------------------------------
--- lhs-test.html
+++ /build/pandoc-2.9.1.1/dist/build/pandoc/pandoc --data-dir=../data --quiet lhs-test.native --wrap=preserve -r native -s -w html
+ 86 <div class="sourceCode" id="cb1"><pre class="sourceCode haskell literate"><code class="sourceCode haskell"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=></span> (b <span class="ot">-></span> c <span class="ot">-></span> d) <span class="ot">-></span> a (b, c) d</span>
+ 87 <span id="cb1-2"><a href="#cb1-2" aria-hidden="true"></a>unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></span>
+ 88 <span id="cb1-3"><a href="#cb1-3" aria-hidden="true"></a> <span class="co">-- arr (\op (x,y) -> x `op` y)</span></span></code></pre></div>
- 86 <div class="sourceCode" id="cb1"><pre class="sourceCode haskell literate"><code class="sourceCode haskell"><span id="cb1-1"><a href="#cb1-1"></a><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=></span> (b <span class="ot">-></span> c <span class="ot">-></span> d) <span class="ot">-></span> a (b, c) d</span>
- 87 <span id="cb1-2"><a href="#cb1-2"></a>unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></span>
- 88 <span id="cb1-3"><a href="#cb1-3"></a> <span class="co">-- arr (\op (x,y) -> x `op` y)</span></span></code></pre></div>
------------------------------------------------------------------------
lhs to lhs: FAIL (0.12s)
------------------------------------------------------------------------
--- lhs-test.html+lhs
+++ /build/pandoc-2.9.1.1/dist/build/pandoc/pandoc --data-dir=../data --quiet lhs-test.native --wrap=preserve -r native -s -w html+lhs
+ 86 <div class="sourceCode" id="cb1"><pre class="sourceCode literatehaskell literate"><code class="sourceCode literatehaskell"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a><span class="ot">> unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=></span> (b <span class="ot">-></span> c <span class="ot">-></span> d) <span class="ot">-></span> a (b, c) d</span>
+ 87 <span id="cb1-2"><a href="#cb1-2" aria-hidden="true"></a><span class="ot">></span> unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></span>
+ 88 <span id="cb1-3"><a href="#cb1-3" aria-hidden="true"></a><span class="ot">></span> <span class="co">-- arr (\op (x,y) -> x `op` y)</span></span></code></pre></div>
- 86 <div class="sourceCode" id="cb1"><pre class="sourceCode literatehaskell literate"><code class="sourceCode literatehaskell"><span id="cb1-1"><a href="#cb1-1"></a><span class="ot">> unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=></span> (b <span class="ot">-></span> c <span class="ot">-></span> d) <span class="ot">-></span> a (b, c) d</span>
- 87 <span id="cb1-2"><a href="#cb1-2"></a><span class="ot">></span> unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></span>
- 88 <span id="cb1-3"><a href="#cb1-3"></a><span class="ot">></span> <span class="co">-- arr (\op (x,y) -> x `op` y)</span></span></code></pre></div>
------------------------------------------------------------------------
reader: OK (0.11s)
...
Because of these the project package still requires tests to be disabled during its build in Nixpgs.
Clone master Nixpkgs or download https://github.com/NixOS/nixpkgs/archive/397a90a6995429e8bb18b9e512e5b51dc2ebaf7a.tar.gz revision (current 2020-06-05)
Go into pkgs/development/haskell-modules/configuration-common.nix, line pandoc = dontCheck super.pandoc; - remove the line, save file
nix-build . -A haskellPackages.pandoc
Maybe, looking truthfully - this just would never be resolved, since it is an old version of pandoc, and newer is two branches ahead, so honestly, probably no one would bother or have time to fix old version test suite, maybe Nixpkgs should migrate on pandoc 2.9 by default, there is no stopping the progress.
Agreed, best for nixpkgs to support a more recent version.
I'll close this.
Well, actually Nix has pandoc 2.9.2 it just called haskellPackages.pandoc_2_9_2_1, someone created a side package probably because of migration incompatibility, but at this point there should be a migration.
Also, pandoc is updated, now 2.9.1.1 in nixpkgs-unstable, so this indeed closed.