Do not check PVP on internal targets (#9004)
commit1cb92a38c016fe0b0af2b5c0aa1d448e675f0ab1
authorffaf1 <fa-ml@ariis.it>
Sun, 11 Jun 2023 10:31:00 +0000 (11 12:31 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 10:31:00 +0000 (11 10:31 +0000)
tree50bf505a304c188b1ba4818fb372b6bda96ddd10
parent14a0103b196cfa50f6124fe9c0956de4017bdf23
Do not check PVP on internal targets (#9004)

* 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>
Cabal/src/Distribution/PackageDescription/Check.hs
cabal-testsuite/PackageTests/Check/NonConfCheck/PackageVersionsNoCheck/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/Check/NonConfCheck/PackageVersionsNoCheck/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/Check/NonConfCheck/PackageVersionsNoCheck/pkg.cabal [new file with mode: 0644]
changelog.d/pr-9004 [new file with mode: 0644]