-
Notifications
You must be signed in to change notification settings - Fork 698
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
Find build-tool installed programs before programs in path #9762
Conversation
@gbaz here is the fix. It still needs a test, I'm trying to figure out how to do one for this specifically.
Happy to take any ideas |
(BTW I've tested this locally on Andreas' reproducer successfully) |
384c30e
to
9fb5ff2
Compare
e710313
to
12c2bdd
Compare
Test added, ready to merge. |
Thank you so much for moving quickly on this. Given how quickly this has been done, and that the only key change is line 1239 of configure.hs, I definitely think we should backport. |
12c2bdd
to
443c890
Compare
I've added the comment you requested @gbaz. I'm also going to put forward a backport MR |
We must consider the path to the installed build-tool before the path to existing versions of the build tool in paths such as `extra-prog-path` or in the system path. This was previously fixed by haskell#8972 but undone by haskell#9527. This also renames `appendProgramSearchPath` to `prependProgramSearchPath` to describe correctly what that function does. Fixes haskell#9756
@backport 3.12 |
@mergify backport 3.12 |
✅ Backports have been created
|
@backport --- apologies, wrong ping, but you must be used to it by now, aren't you? :) |
Find build-tool installed programs before programs in path (backport #9762)
We must consider the path to the installed build-tool before the path to existing versions of the build tool in paths such as
extra-prog-path
or in the system path.This was previously fixed by #8972 but undone by #9527.
This also renames
appendProgramSearchPath
toprependProgramSearchPath
to describe correctly what that function does.Fixes #9756