Skip to content

new-install symlink location #5000

Closed
Closed
@fgaz

Description

@fgaz

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:

  1. set symlink-bindir to ~/.cabal/bin and equivalents on config creation
  2. use bindir instead

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions