haskell / haskell/cabal

Help with $PATH masking troubles

Open
#3,121 3 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Very often users have cabal at /usr/bin and then they install a new one and are confused as to why the version apparently has not changed. We do warn if the installed exe is not on the $PATH at all (iirc) but we don't warn about masking. We should.

Also, in the specific case of cabal-install perhaps we should consider some trick to re-exec the right version. That is, if the user runs /usr/bin/cabal then it could simply re-exec ~/bin/cabal, possibly with a $PATH warning. This would not be too hard to do (though of course it relies on the system version not being too old), but we'd want to work out when it's right to do it, vs when the user really did mean to run the system version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.