-
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
Don't add extra-prog-path
to ~/.config/cabal/config
(#8951)
#8952
Conversation
@sol: may we help you with the CI? I guess the last failure is expected (tests needs to be adjusted)? Is there anything else in the CI log that is concerning? |
@Mikolaj I rebased and adjusted that test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM given my limited understading.
There's another PR in flight that claims to resolve the same ticket? #8972 |
@ulysses4ever "We could (and probably should) do both." |
@@ -0,0 +1,3 @@ | |||
synopsis: Don't add `extra-prog-path: ~/.local/bin` when initially creating `~/.config/cabal/config` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking: I'd love a short description that would explain the benefit (which we all know, but that would save some pointer chasing for the casual reader in the changelog interface of the package index.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sol: how about this extra explanation?
It seems this one is not going to make it in time for 3.10.2.0 and we don't want to rush anything in a point release, unless a regression is super-terrible. |
I don't want to be overly dramatic, but this regression (== the regression introduced with #8506) can silently corrupt builds. Why is that? Because a failing build due to the wrong version of a build tool being used is actually the best case scenario here. What might happen instead is that the build succeeds, possibly producing a different result. It's not just hypothetical. I spent a whole day debugging this, and I didn't do so for no reason. I did it, because there was something fishy, because from what I understand, when a feature introduces a regression, there are two ways to address this: Either revert the feature, or fix the regression. So I would hope that either
For this PR, is the issue that we don't have the second approving review? If yes, @gbaz can you take a look? |
I think 8972 is the most important thing to merge. This PR only affects first-time cabal users, as otherwise configs tend to have settings inherited from prior cabals instead of being generated afresh. Its probably a worthwhile cleanup regardless, that said, in that when installing with e.g. ghcup, the cabal bin path gets added to the path anyway. |
To put it more concretely for the casual reader:
|
In that case let's merge (perhaps speeding it up by setting merge_delay_passed manually) and then try to backport. |
@mergify rebase |
✅ Branch has been successfully rebased |
@mergify rebase |
(when initially creating it)
✅ Branch has been successfully rebased |
@Mergifyio backport 3.10 |
✅ Backports have been created
|
(when initially creating it)
This partially addresses #8951.
Please include the following checklist in your PR:
Bonus points for added automated tests!