forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request haskell#9926 from haskell/wip/succeed-on-nothing-copy
Downgrade NoLibraryFound from an error to a warning
- Loading branch information
Showing
8 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
cabal-testsuite/PackageTests/OnlyTestSuite/OnlyTestSuite.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cabal-version: 3.0 | ||
name: OnlyTestSuite | ||
version: 0.1.0.0 | ||
build-type: Simple | ||
|
||
common warnings | ||
ghc-options: -Wall | ||
|
||
test-suite OnlyTestSuite-test | ||
import: warnings | ||
default-language: Haskell2010 | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Main.hs | ||
build-depends: base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Setup configure | ||
Configuring OnlyTestSuite-0.1.0.0... | ||
# Setup build | ||
Building OnlyTestSuite-0.1.0.0... | ||
# Setup copy | ||
Warning: No executables and no library found. Nothing to do. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Setup configure | ||
Configuring OnlyTestSuite-0.1.0.0... | ||
# Setup build | ||
Building OnlyTestSuite-0.1.0.0... | ||
# Setup copy | ||
Warning: No executables and no library found. Nothing to do. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
withPackageDb $ do | ||
setup "configure" [] | ||
setup "build" [] | ||
setup "copy" [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module Main (main) where | ||
|
||
main :: IO () | ||
main = putStrLn "Test suite not yet implemented." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
synopsis: Make Setup copy/install succeed when there's no executable or library | ||
packages: Cabal | ||
prs: #9926 | ||
issues: #6750 | ||
|
||
description: { | ||
Historically the Setup copy and install steps would fail if the package didn't | ||
contain an executable or library component. In this case there's nothing to do. | ||
|
||
This required workarounds for downstream users of Cabal to handle this edge case. | ||
Now that this error has been downgraded to a warning, Cabal will succeed if | ||
there's nothing to do. | ||
} |