Skip to content

Do not check PVP on internal targets #9004

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

Merged
merged 3 commits into from
Jun 11, 2023

Conversation

ffaf1
Copy link
Collaborator

@ffaf1 ffaf1 commented Jun 6, 2023

Internal targets: test-suites or benchmarks.
See #8361 for rationale.

Note that this patch is quite ugly (duplicating allBuildInfo, using list comprehensions, etc.) but we don’t care as everything will be overwritten by a much more sensible reimplementation in #8427.


Please include the following checklist in your PR:


QA Notes

  1. fetch any cabal package with a test-suite, say cabal get lentil
  2. cd into it
  3. in the build-depends section of the test-suite stanza, add an unbounded dependency
  4. run cabal check, it should not complain about missing upper bounds

Internal targets: test-suites or benchmarks.
See haskell#8361 for rationale.

Note that this patch is quite ugly (duplicating allBuildInfo, using
list comprehensions, etc.) but we don’t care as everything will be
overwritten by a much more sensible reimplementation in haskell#8427.
@Kleidukos Kleidukos self-requested a review June 8, 2023 17:17
@Mikolaj
Copy link
Member

Mikolaj commented Jun 8, 2023

So, is it a good idea to include this in cabal 3.10.2.0? Gershom also says it would be useful for Hackage. Any problems with this idea?

@Kleidukos
Copy link
Member

And it needs a change to Cabal as well in order for Hackage to benefit from it.

@ffaf1 ffaf1 added the squash+merge me Tell Mergify Bot to squash-merge label Jun 9, 2023
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Jun 11, 2023
@mergify mergify bot merged commit 1cb92a3 into haskell:master Jun 11, 2023
@ffaf1 ffaf1 mentioned this pull request Jun 11, 2023
4 tasks
@ffaf1 ffaf1 deleted the no-check-pvp-internal branch June 11, 2023 12:02
@Mikolaj
Copy link
Member

Mikolaj commented Jun 12, 2023

So, do we backport now? If so, let's do mergify backport 3.10. Actually, this could have been done instead of the backport label and, with some luck, mergify would create the backport after merge, automatically.

@ffaf1
Copy link
Collaborator Author

ffaf1 commented Jun 12, 2023

@mergify backport 3.10

@mergify
Copy link
Contributor

mergify bot commented Jun 12, 2023

backport 3.10

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 12, 2023
* Do not check PVP on internal targets

Internal targets: test-suites or benchmarks.
See #8361 for rationale.

Note that this patch is quite ugly (duplicating allBuildInfo, using
list comprehensions, etc.) but we don’t care as everything will be
overwritten by a much more sensible reimplementation in #8427.

* Add changelog for #9004

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 1cb92a3)

# Conflicts:
#	Cabal/src/Distribution/PackageDescription/Check.hs
@Mikolaj
Copy link
Member

Mikolaj commented Jun 12, 2023

Uhoh, a merge conflict in the backport. Is it because we should have backported another PR first or is it due to the formatting PR or something yet different?

@ffaf1
Copy link
Collaborator Author

ffaf1 commented Jun 12, 2023

It is fourmolu.

Kleidukos added a commit to Kleidukos/cabal that referenced this pull request Jun 12, 2023
Internal targets: test-suites or benchmarks.
See haskell#8361 for rationale.

Note that this patch is quite ugly (duplicating allBuildInfo, using
list comprehensions, etc.) but we don’t care as everything will be
overwritten by a much more sensible reimplementation in haskell#8427.
Kleidukos added a commit to Kleidukos/cabal that referenced this pull request Jun 12, 2023
Internal targets: test-suites or benchmarks.
See haskell#8361 for rationale.

Note that this patch is quite ugly (duplicating allBuildInfo, using
list comprehensions, etc.) but we don’t care as everything will be
overwritten by a much more sensible reimplementation in haskell#8427.
mergify bot added a commit that referenced this pull request Jun 17, 2023
…l-3.10

Do not check PVP on internal targets (backport of #9004 to 3.10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: cmd/check 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.

4 participants