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

Filter CommonSetupFlags more consistently in UnpackedPackage #10395

Merged

Conversation

9999years
Copy link
Collaborator

Split off of #10292.

In #10292, we will move the --keep-temp-files setting into CommonSetupFlags and out of ReplFlags/HaddockFlags. This means that the flag-filtering behavior (which adapts flags from new versions of cabal-install to old version of Cabal) will need to know which command is being run to provide the correct CommonSetupFlags.

Therefore, this change adds several new filterFooFlags functions to provide this behavior, and removes the commonFlags used for all subcommands in Distribution.Client.ProjectBuilding.UnpackedPackage.

  • 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).

In haskell#10292, we will move the `--keep-temp-files` setting into
`CommonSetupFlags` and out of `ReplFlags`/`HaddockFlags`. This means
that the flag-filtering behavior (which adapts flags from new versions
of `cabal-install` to old version of `Cabal`) will need to know which
command is being run to provide the correct `CommonSetupFlags`.

Therefore, this change adds several new `filterFooFlags` functions to
provide this behavior, and removes the `commonFlags` used for all
subcommands in `Distribution.Client.ProjectBuilding.UnpackedPackage`.
Copy link
Collaborator

@geekosaur geekosaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes API; can't backport.

Might this have an impact on #10379?

@9999years 9999years added the merge me Tell Mergify Bot to merge label Sep 28, 2024
@9999years 9999years marked this pull request as ready for review September 28, 2024 01:17
@mpickering
Copy link
Collaborator

LGTM.

@mergify mergify bot added merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days ready and waiting Mergify is waiting out the cooldown period labels Sep 30, 2024
@mergify mergify bot merged commit 9aefa85 into haskell:master Sep 30, 2024
50 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge merge+no rebase ready and waiting Mergify is waiting out the cooldown period
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants