Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: make cabal new-install install to ~/.local/bin (or use XDG directories more generally) #5614

Closed
athas opened this issue Oct 9, 2018 · 3 comments

Comments

@athas
Copy link
Collaborator

athas commented Oct 9, 2018

For as long as I've been using Cabal, cabal install has installed to ~/.cabal/bin. This is fine if you know that's what it does, as it is little work to add it to your PATH. It is still work, though, and most other languages/build tools seem to be standardising on ~/.local/bin (it is part of the systemd file-hierarchy spec which is slowly becoming the default as far as I can see). I think it would be better if cabal install installed to this location as well, as it would increase the likelyhood that the installation directory is already on the PATH of the user.

@hvr
Copy link
Member

hvr commented Oct 9, 2018

For reference, #680 was the original more ambitious feature request to migrate cabal over to XDG wholesale. However, I wouldn't consider this ticket a duplicate, but rather a more scope focused enhancement focusing on merely trying to bring the symlink-bindir into alignment w/ XDG conventions.

We still need to figure out a reasonable migration path and some heuristics to go along with this, but I believe we can reasonably try to target this for the cabal 3.0 milestone, especially if we don't become overly ambitious :-)

@athas
Copy link
Collaborator Author

athas commented Nov 4, 2019

This missed 3.0, unfortunately. Is there still interest in doing this or should I close the issue? I still personally think the use of ~/.cabal/bin is a UX defect.

@Mikolaj Mikolaj closed this as completed Jun 25, 2021
@Mikolaj
Copy link
Member

Mikolaj commented Jun 25, 2021

Duplicate of #680

@Mikolaj Mikolaj marked this as a duplicate of #680 Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants