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

Prefer ProjectFlags over additional field in OutdatedFlags #7439

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Jun 12, 2021

closes #6815


Please include the following checklist in your PR:

Please also shortly describe how you tested your change. Bonus points for added tests!

I tested it manually that it uses the correct freeze file.

@fendor fendor force-pushed the polish/project-flags branch 2 times, most recently from 3781754 to c0bc4e2 Compare June 12, 2021 13:38
Copy link
Member

@Mikolaj Mikolaj left a comment

Choose a reason for hiding this comment

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

LGTM

cabal-install/src/Distribution/Client/CmdOutdated.hs Outdated Show resolved Hide resolved
@fendor fendor requested a review from emilypi June 14, 2021 08:05
@fendor fendor force-pushed the polish/project-flags branch from c0bc4e2 to 62c8226 Compare June 14, 2021 08:06
@Mikolaj
Copy link
Member

Mikolaj commented Jun 15, 2021

Windows CI seems to be borked. Let's hope only that one.

@fendor fendor force-pushed the polish/project-flags branch from 4c26cab to 62c8226 Compare June 15, 2021 14:59
fendor added 2 commits June 15, 2021 16:59
Since most commands use 'ProjectFlags' but almost all commands can not
function properly without a project context, some commands manually
strip the flag '-z' (--ignore-project) from the command line option parser.

Unify the behaviour for all commands.
@fendor fendor force-pushed the polish/project-flags branch from 62c8226 to 682a639 Compare June 15, 2021 14:59
@fendor fendor merged commit 5371dd9 into haskell:master Jun 15, 2021
shapr added a commit to shapr/cabal that referenced this pull request Oct 20, 2023
The nearly identical PR for haskell#7439 was used as a guide for this PR.
The point of this PR is to reduce the duplication of project flag
handling.

Co-authored-by: Jean-Paul Calderone <[email protected]>
@shapr shapr mentioned this pull request Oct 20, 2023
1 task
mergify bot added a commit that referenced this pull request Oct 25, 2023
* Use ProjectFlags to define CleanCmd

The nearly identical PR for #7439 was used as a guide for this PR.
The point of this PR is to reduce the duplication of project flag
handling.

Co-authored-by: Jean-Paul Calderone <[email protected]>

* remove duplicate support for project-dir

* switch use of NamedFieldPuns to RecordWildCards

---------

Co-authored-by: Jean-Paul Calderone <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use ProjectFlags in outdated command
4 participants