Filter Setup flags: filter working dir on < 3.13
commitabd4ead70a3c325dbd5deed189474e7d599686f0
authorsheaf <sam.derbyshire@gmail.com>
Tue, 30 Apr 2024 13:51:03 +0000 (30 15:51 +0200)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Thu, 2 May 2024 12:54:59 +0000 (2 12:54 +0000)
tree6a166d1cafafcd1cbe75e1836709a409779a4261
parent6828c0bf1835601dc040fbf83a18831de5a78163
Filter Setup flags: filter working dir on < 3.13

The --working-dir flag is only available for Cabal >= 3.13.
This commit fixes an incorrect conditional: we only filtered out this
flag for Cabal < 3.11, instead of < 3.13.

Test: PackageTests/WorkingDir

Fixes #9940
cabal-install/src/Distribution/Client/Setup.hs
cabal-testsuite/PackageTests/WorkingDir/Main.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/WorkingDir/Setup.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/WorkingDir/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/WorkingDir/dep/Dep.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/WorkingDir/dep/Setup.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/WorkingDir/dep/dep.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/WorkingDir/setup.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/WorkingDir/working-dir-test.cabal [new file with mode: 0644]