You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an awkward issue with a number of moving parts: stack, Cabal, autotools, and the time library. I think the bug is in stack, but I could be wrong. To reproduce:
$ stack sdist
Stack has not been tested with GHC versions above 8.6, and using 8.8.2, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
Getting file list for /home/ashley/Projects/Haskell/Time/time/
time> setup: can't find include file HsTimeConfig.h
time>
-- While building package time-1.10 using:
/home/ashley/Projects/Haskell/Time/time/.stack-work/dist/x86_64-linux/Cabal-3.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-3.0.1.0 sdist --list-sources /tmp/stack-sdist28443/source-files-list
Process exited with code: ExitFailure 1
I also tried stack --resolver lts-14 sdist, with the same problem.
HsTimeConfig.h is not a source file, but is built by configure. When stack builds the time library, the file ends up in .stack-work/dist/x86_64-linux/Cabal-3.0.1.0/build/lib/include/HsTimeConfig.h rather than in lib/include/HsTimeConfig.h where stack sdist seems to want it.
HsTimeConfig.h is mentioned in the extra-tmp-files field of time.cabal. However, the problem persists even if I remove it. It's not entirely clear to me that the file even needs to be in the distribution tarball, since it will be built by the configure script. My workaround is to run configure manually, which will put the file in the expected place.
This is an awkward issue with a number of moving parts: stack, Cabal, autotools, and the time library. I think the bug is in stack, but I could be wrong. To reproduce:
stack build
stack sdist
Results:
I also tried
stack --resolver lts-14 sdist
, with the same problem.HsTimeConfig.h
is not a source file, but is built byconfigure
. When stack builds the time library, the file ends up in.stack-work/dist/x86_64-linux/Cabal-3.0.1.0/build/lib/include/HsTimeConfig.h
rather than inlib/include/HsTimeConfig.h
wherestack sdist
seems to want it.HsTimeConfig.h
is mentioned in theextra-tmp-files
field oftime.cabal
. However, the problem persists even if I remove it. It's not entirely clear to me that the file even needs to be in the distribution tarball, since it will be built by the configure script. My workaround is to runconfigure
manually, which will put the file in the expected place.Stack version
Method of installation
The text was updated successfully, but these errors were encountered: