You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be good if one could override the current working directory with a flag, similar to make -C <root-dir>. I'd want this e.g. for executing an non-installed agda living in source tree /agda-root/ from some wd /bar/.
/bar/$ cabal run --project-root=/agda-root agda -- someFile.agda
The name of this option could be bikeshed, e.g. --project-root, --projectdir, --directory (good old make).
We already have option --project-file, but there are projects that do not have such a file (just a .cabal file).
Reacted by Mikolaj Konarski, Artem Pelenitsyn and George Thomas
Could I ask for help reviewing the PR fixing this issue (#8454)? Even a cursory look and a comment whether this might fix your use case (bonus points for checking out and confirming) would be very much appreciated.
Activity
cydparser commentedon Sep 6, 2022
I've implemented this in PR #8454
Please feel free to discuss/bikeshed in the PR.
Mikolaj commentedon Oct 17, 2022
Could I ask for help reviewing the PR fixing this issue (#8454)? Even a cursory look and a comment whether this might fix your use case (bonus points for checking out and confirming) would be very much appreciated.
Mikolaj commentedon Nov 23, 2022
A new proposal dropped at #8454. Could you kindly voice your opinion?
andreasabel commentedon Aug 27, 2024
PR #8454 has not addressed the OP, at least with the latest cabal (3.12.1.0)
cabal run --project-root=...does not work:andreasabel commentedon Aug 27, 2024
Sorry, the option name is
--project-dir, and that works (since 3.12).Thanks!