Skip to content

Add --basedir flag #4867

@angerman

Description

@angerman

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions