-
Notifications
You must be signed in to change notification settings - Fork 723
Closed
Description
When executing cabal (or even the library, which I consider even worse), many commands rely on the current working directory to be the one containing the cabal file.
I propose we add a --basedir flag, that is part of the local build information of type Maybe FilePath, and relative file lookups are done relative to the --basedir. If the --basedir is Nothing, the behavior would be identical to the current one. However it would allow to execute cabal from a directory that is not the one that contains the .cabal file.
It looks like the new-* commands suffer from this limitation as well.