-
Notifications
You must be signed in to change notification settings - Fork 701
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
Add a warning when an env file is created (backport #9705) #9895
Conversation
To be merged after 3.12.0.0 is out. |
@mergify refresh |
✅ Pull request refreshed |
@mergify unqueue |
✅ The pull request has been removed from the queue
|
@mergify queue |
🛑 The pull request has been removed from the queue
|
@mergify rebase |
* Add a warning when an env file is created #6481 (comment) * Formatting * Improve wording of warning message * Only show warning if --package-env not given * Improve message and its formatting * Formatting (cherry picked from commit 00ce024)
✅ Branch has been successfully rebased |
d0060e6
to
5b89d82
Compare
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 31eb97a |
It looks like, Mergify is ready to take it once Validate succeeds. |
Validate did succeed, but I think the PR was not the first in the queue, so mergify waited, another got merged and indeed validate had to run again due to a rebase. This is fine. |
Oh, my bad: I almost never analyze the queue... |
Inspired by #6481 (comment)
I get that there are many colourable panels on the bikeshed that is
cabal env
, and even many real engineering choices and challenges, but it would be very nice if at least the user gets some warning if theycabal install --lib
and that creates an environment file. After all, statistically, this is not what they intended, or if it was they probably didn't know the consequences. Had they known the consequences, they would have realised that this is not what they wanted.This patch only shows a warning if an environment file does not yet exist, to acknowledge the set of people who are actually using this functionality.
This is blocked on the bug mentioned here: #9697 (comment)
This is an automatic backport of pull request #9705 done by [Mergify](https://mergify.com).