-
Notifications
You must be signed in to change notification settings - Fork 723
Description
Currently new-install errors out without additional flags because it uses symlink-bindir as symlink location, which is unset by default. I actually am not sure what that flag was supposed to do originally (can someone clarify? Is the current behavior the intended one?).
After some digging I found that bindir is the only flag that is automatically set to ~/.cabal/bin in the config file.
Now there are two courses of action:
- set
symlink-bindirto~/.cabal/binand equivalents on config creation - use
bindirinstead
The downside of (1) is that existing configurations will not have that flag set and will give an error. edit: well, I just discovered cabal user-config update
The downside of (2) is that the bindir flag serves an obvious purpose for packagers, and using it for the symlink and not the executable violates that.
I think (1) is the correct one, maybe with a default to address the empty flag problem, but I'd like to hear some opinions first.
We should also document symlink-bindir here