Do not check PVP on internal targets (#9004)
commitad8279ffbba92423f5b1b55f4fc46902c331c177
authorHécate Moonlight <hecate+github@glitchbra.in>
Mon, 12 Jun 2023 13:34:41 +0000 (12 15:34 +0200)
committerHécate Moonlight <hecate+github@glitchbra.in>
Mon, 12 Jun 2023 14:03:48 +0000 (12 16:03 +0200)
tree18b0ca027c554e959e7e2a73bae4ec42e9d080d5
parent6baf1e4e7b2c40529355c8f000dbf23595e8caae
Do not check PVP on internal targets (#9004)

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.
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]