Skip to content

Relative paths in cabal.project files don't work as expected #5881

@mpickering

Description

@mpickering

I want to pass some options to a dependency. So I added the flags to my cabal.project file as follows.

package groups                                                                  
    ghc-options: -fwrite-ide-info -hiedir=./test/hie-files

However, now groups is rebuilt but the hie files are not in the directory I specified and nor are they anywhere to be seen at all! I can't find them anywhere in my home directory.

If I write an absolute path it works fine.

Why I consider this a bug, if I cabal get groups, modify the cabal file to add the ghc-options and add it as a local dependency then the path is resolved relative to the cabal file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions