Downgrade NoLibraryFound from an error to a warning
commit312a4124e3e197e3525f60d5b9684e208e1c8df4
authorTeo Camarasu <teo.camarasu@tracsis.com>
Wed, 24 Apr 2024 10:47:53 +0000 (24 11:47 +0100)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Mon, 6 May 2024 12:41:16 +0000 (6 12:41 +0000)
tree82b7dd4edb2e8c3f0b179f4a9fe3ef6c5637c83b
parentabb334c7b6fba31c9f621ea3ed7704d3546d15f2
Downgrade NoLibraryFound from an error to a warning

This makes Setup copy/install succeed if there's
nothing to do because the package doesn't contain
a library or executable.

This allows downstream users of Cabal to avoid having to
add workarounds for this edge case.

Resolves #6750
Cabal/src/Distribution/Simple/Errors.hs
Cabal/src/Distribution/Simple/Install.hs
cabal-testsuite/PackageTests/OnlyTestSuite/OnlyTestSuite.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/OnlyTestSuite/cabal.cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/OnlyTestSuite/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/OnlyTestSuite/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/OnlyTestSuite/test/Main.hs [new file with mode: 0644]
changelog.d/issue-6750 [new file with mode: 0644]