-
Notifications
You must be signed in to change notification settings - Fork 704
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 #6896 from phadej/issue-6894-fix
Fix #6894: circularity check
- Loading branch information
Showing
6 changed files
with
42 additions
and
17 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
16 changes: 13 additions & 3 deletions
16
cabal-testsuite/PackageTests/MultipleLibraries/T6894/cabal.out
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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: | ||
Dependency cycle between the following components: library | ||
In the inplace package 'issue-6894' | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- issue-6894 (lib:sublib) (first run) | ||
- issue-6894 (lib) (first run) | ||
Warning: issue.cabal:7:30: colon specifier is experimental feature (issue #5660) | ||
Configuring library 'sublib' for issue-6894.. | ||
Preprocessing library 'sublib' for issue-6894.. | ||
Building library 'sublib' for issue-6894.. | ||
Warning: issue.cabal:7:30: colon specifier is experimental feature (issue #5660) | ||
Configuring library for issue-6894.. | ||
Warning: The package has an extraneous version range for a dependency on an internal library: issue:{sublib} >=0 && ==6894. This version range includes the current package but isn't needed as the current package's library will always be used. | ||
Preprocessing library for issue-6894.. | ||
Building library for issue-6894.. |
2 changes: 1 addition & 1 deletion
2
cabal-testsuite/PackageTests/MultipleLibraries/T6894/cabal.test.hs
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ | ||
fails $ cabal "v2-build" ["issue"] | ||
cabal "v2-build" ["issue"] |
7 changes: 4 additions & 3 deletions
7
cabal-testsuite/PackageTests/MultipleLibraries/T6894/setup.cabal.out
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# Setup configure | ||
Warning: issue.cabal:7:30: colon specifier is experimental feature (issue #5660) | ||
Configuring issue-6894... | ||
Error: | ||
Components in the package issue-6894 depend on each other in a cyclic way: | ||
'library' depends on 'library' | ||
# Setup build | ||
Preprocessing library 'sublib' for issue-6894.. | ||
Building library 'sublib' for issue-6894.. | ||
Preprocessing library for issue-6894.. | ||
Building library for issue-6894.. |
7 changes: 4 additions & 3 deletions
7
cabal-testsuite/PackageTests/MultipleLibraries/T6894/setup.out
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# Setup configure | ||
Warning: issue.cabal:7:30: colon specifier is experimental feature (issue #5660) | ||
Configuring issue-6894... | ||
Error: | ||
Components in the package issue-6894 depend on each other in a cyclic way: | ||
'library' depends on 'library' | ||
# Setup build | ||
Preprocessing library 'sublib' for issue-6894.. | ||
Building library 'sublib' for issue-6894.. | ||
Preprocessing library for issue-6894.. | ||
Building library for issue-6894.. |
2 changes: 1 addition & 1 deletion
2
cabal-testsuite/PackageTests/MultipleLibraries/T6894/setup.test.hs
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
fails $ setup_build [] | ||
setup_build [] |