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

Allow package to be listed twice in cabal.project #9449

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

alt-romes
Copy link
Collaborator

@alt-romes alt-romes commented Nov 14, 2023

This makes checkTarget a little smarter by deduplicating the TargetPackage so as not to error out when the user has the line

package: .

twice in their cabal.project.

Fixes #9448

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • Manual QA notes have been included.
  • Tests have been added. (Ask for help if you don’t know how to write them! Ask for an exemption if tests are too complex for too little coverage!)

@alt-romes alt-romes self-assigned this Nov 14, 2023
@alt-romes
Copy link
Collaborator Author

If this is a desired change, I'll add a testsuite case to the MR.

This makes `checkTarget` a little smarter by deduplicating the
`TargetPackage` so as not to error out when the user has the line

    package: .

twice in their `cabal.project`.

Fixes haskell#9448
Copy link
Collaborator

@andreabedini andreabedini left a comment

Choose a reason for hiding this comment

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

LGTM

@alt-romes
Copy link
Collaborator Author

How can we merge this? Is there a label or should I just click the button?

@ffaf1 ffaf1 added squash+merge me Tell Mergify Bot to squash-merge and removed attention: needs-review labels Dec 4, 2023
@ffaf1
Copy link
Collaborator

ffaf1 commented Dec 4, 2023

Yup, squas+merge me, as per CONTRIBUTING.md.

I did it for you this time, now wait patiently for CI to go green + two more days.

@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Dec 6, 2023
@mergify mergify bot merged commit 999776e into haskell:master Dec 6, 2023
48 checks passed
erikd pushed a commit to erikd/cabal that referenced this pull request Apr 22, 2024
This makes `checkTarget` a little smarter by deduplicating the
`TargetPackage` so as not to error out when the user has the line

    package: .

twice in their `cabal.project`.

Fixes haskell#9448

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
merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days squash+merge me Tell Mergify Bot to squash-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"add support for multiple packages" when the same package is listed twice
5 participants