-
Notifications
You must be signed in to change notification settings - Fork 704
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
cabal checks PATH before extra-prog-path #6304
Comments
For simple builds it looks like we already prepend the program path: cabal/Cabal/src/Distribution/Simple.hs Line 692 in 0abbe37
However, for configure we postpend it:
And ditto for v2 configuration:
As such I'm going to try to change it in the latter two spots. |
We have a pr including tests for non windows systems. However there is no evidence it works for windows: there is no integration test neither a manual test (@Mistuke tried the pr with no success, see #8506 (comment)) |
Describe the bug
When you have a program that's both on your
PATH
and inextra-prog-path
you can't steer cabal to which one you want locally without modifying yourPATH
.This is an issue with
pkg-config
on Windows because by default global installs ofmsys2
(such as on appveyor) put the wrong version on your path.Expected behavior
I expect cabal to use the paths I manually specified in
extra-prog-path
before the ones inPATH
. This allows the use more control over which program they wanted used.The text was updated successfully, but these errors were encountered: