Skip to content

new-install symlink location #5000

Closed
Closed

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

Activity

  1. added
    cabal-install: v2-build system
    on Jan 6, 2018
  2. added this to the 2.2 milestone on Jan 6, 2018
  3. self-assigned this
    on Jan 6, 2018
  4. changed the title [-]new-install install location[/-] [+]new-install symlink location[/+] on Jan 6, 2018
  5. 23Skidoo commented on Jan 8, 2018

    @23Skidoo
    Member

    Congrats on the 5000 get, by the way.

  6. ezyang commented on Jan 8, 2018

    @ezyang
    Contributor

    (1) seems OK to me, esp if the error message when it is unset explains how to unwedge your config.

  7. fgaz commented on Jan 16, 2018

    @fgaz
    MemberAuthor

    @dcoutts you seem to be the author of symlink-bindir 2eddc49

    Is the first option here correct?

  8. angerman commented on Jan 19, 2018

    @angerman
    Collaborator

    I'm in favor of (1) as well.


    Wow, 2eddc49 is almost 10 years old!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cabal-install: v2-build system

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions