commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

`stack haddock --haddock-for-hackage --only-dependencies` fails ungainly #6520

Closed mpilgrem closed 3 months ago

mpilgrem commented 3 months ago

Motivation: @pbrisbin's https://github.com/commercialhaskell/stack/issues/6270#issuecomment-1997854011

Example:

> stack new foo
> cd foo
> stack haddock --haddock-for-hackage --only-dependencies
...\foo\.stack-work\dist\ab060f89\foo-0.1.0.0-docs.tar.gz: withBinaryFile: does not exist (No such file or directory)
mpilgrem commented 3 months ago

@pbrisbin, this should be fixed in the master branch version of Stack. If you do not use GHCup to manage versions of Stack: stack upgrade --source-only --git.