Validate fails locally on windows.
I tried running validate locally today and it fails with this error:
cat '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf' | sed 's|haddock-interfaces.*|haddock-interfaces: "${pkgroot}/../doc/html/libraries/xhtml/xhtml.haddock"|' | sed 's|haddock-html.*|haddock-html: "${pkgroot}/../doc/html/libraries/xhtml"|' | sed 's| ${pkgroot}/../../docs/html/.*||' > '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf.copy'
# The rts package doesn't actually supply haddocks, so we stop advertising them
# altogether.
((echo "xhtml" | grep rts) && (cat '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf.copy' | sed 's|haddock-.*||' > '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf.copy.copy')) || (cat '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf.copy' > '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf.copy.copy')
# We finally replace the original file.
mv '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf.copy.copy' '/home/andi/ghc_exp_rationals/bindisttest/install dir/lib/package.conf.d/xhtml-3000.2.2.1.conf'
'/home/andi/ghc_exp_rationals/bindisttest/install dir/bin/ghc-pkg' recache
bindist test: OK
== Start post-install package check
GHC package manager version 9.1.20210202
Timestamp 2021-02-03 14:43:46.0827685 UTC for C:\ghc\msys64\home\andi\ghc_exp_rationals\bindisttest\install dir\lib\package.conf.d\package.cache
using cache: C:\ghc\msys64\home\andi\ghc_exp_rationals\bindisttest\install dir\lib\package.conf.d\package.cache
db stack: ["C:\\Users\\andi\\AppData\\Roaming\\ghc\\x86_64-mingw32-9.1.20210202\\package.conf.d","C:\\ghc\\msys64\\home\\andi\\ghc_exp_rationals\\bindisttest\\install dir\\lib\\package.conf.d"]
flag db stack: ["C:\\Users\\andi\\AppData\\Roaming\\ghc\\x86_64-mingw32-9.1.20210202\\package.conf.d","C:\\ghc\\msys64\\home\\andi\\ghc_exp_rationals\\bindisttest\\install dir\\lib\\package.conf.d"]
== End post-install package check
[1 of 1] Compiling Main ( Setup.hs, Setup.o )
Linking Setup.exe ...
Configuring xhtml-3000.2.2.1...
Preprocessing library for xhtml-3000.2.2.1..
Building library for xhtml-3000.2.2.1..
on the commandline: warning:
-Wnoncanonical-monadfail-instances is deprecated: fail is no longer a method of Monad
[ 1 of 15] Compiling Text.XHtml.BlockTable ( Text\XHtml\BlockTable.hs, dist-bindist\build\Text\XHtml\BlockTable.dyn_o )
Text\XHtml\BlockTable.hs:67:8: error:
Could not find module ‘Prelude’
Perhaps you haven't installed the "dyn" libraries for package ‘base-4.16.0.0’?
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
67 | module Text.XHtml.BlockTable (
| ^^^^^^^^^^^^^^^^^^^
I suspect there is some dependency there that isn't tracked correctly by hadrian.