Skip to content

cabal-docspec fails if it cannot find ~/.cabal/config #136

@RyanGlScott

Description

@RyanGlScott

I am attempting to run cabal-docspec locally on a machine where my cabal configuration is located at ~/.config/cabal/config, which is now the default location with cabal-install-3.10 and later. When I do so, cabal-docspec fails with:

$ cabal-docspec
[   0.00001] ghc.info: ghc
[   0.00034] process.0.start: cwd=/tmp ghc --info
[   0.02450] peu.exception: SomeException
/home/ryanglscott/.cabal/config: withBinaryFile: does not exist (No such file or directory)

Presumably, it's looking for the configuration in ~/.cabal/config instead. Is there a way to tell cabal-docspec to look in a different location?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions