Skip to content
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

Merged
merged 2 commits into from
May 1, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 16, 2024

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 they cabal 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)

  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

This is an automatic backport of pull request #9705 done by [Mergify](https://mergify.com).

@mergify mergify bot mentioned this pull request Apr 16, 2024
2 tasks
@mergify mergify bot added the backport label Apr 16, 2024
@Mikolaj Mikolaj requested a review from ffaf1 April 16, 2024 11:15
@Mikolaj
Copy link
Member

Mikolaj commented Apr 23, 2024

To be merged after 3.12.0.0 is out.

@Mikolaj Mikolaj added the merge me Tell Mergify Bot to merge label May 1, 2024
@Mikolaj
Copy link
Member

Mikolaj commented May 1, 2024

@mergify refresh

Copy link
Contributor Author

mergify bot commented May 1, 2024

refresh

✅ Pull request refreshed

@Mikolaj
Copy link
Member

Mikolaj commented May 1, 2024

@mergify unqueue

Copy link
Contributor Author

mergify bot commented May 1, 2024

unqueue

✅ The pull request has been removed from the queue default

@Mikolaj
Copy link
Member

Mikolaj commented May 1, 2024

@mergify queue

Copy link
Contributor Author

mergify bot commented May 1, 2024

queue

🛑 The pull request has been removed from the queue default

Pull request #9895 has been dequeued by a dequeue command.

You can take a look at Queue: Embarked in merge queue check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@Mikolaj
Copy link
Member

Mikolaj commented May 1, 2024

@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)
Copy link
Contributor Author

mergify bot commented May 1, 2024

rebase

✅ Branch has been successfully rebased

@Mikolaj Mikolaj force-pushed the mergify/bp/3.12/pr-9705 branch from d0060e6 to 5b89d82 Compare May 1, 2024 11:25
@Mikolaj
Copy link
Member

Mikolaj commented May 1, 2024

@mergify queue

Copy link
Contributor Author

mergify bot commented May 1, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 31eb97a

@ulysses4ever
Copy link
Collaborator

It looks like, Mergify is ready to take it once Validate succeeds.

@mergify mergify bot merged commit 31eb97a into 3.12 May 1, 2024
53 checks passed
@mergify mergify bot deleted the mergify/bp/3.12/pr-9705 branch May 1, 2024 17:08
@Mikolaj
Copy link
Member

Mikolaj commented May 1, 2024

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.

@ulysses4ever
Copy link
Collaborator

Oh, my bad: I almost never analyze the queue...

@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants