-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #6961. Depending on a private component from the same package is …
…fine.
- Loading branch information
Showing
5 changed files
with
13 additions
and
14 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
10 changes: 4 additions & 6 deletions
10
cabal-testsuite/PackageTests/Regression/T6961/Test/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,8 +1,6 @@ | ||
# cabal v2-build | ||
Resolving dependencies... | ||
cabal: Could not resolve dependencies: | ||
[__0] trying: issue6961-0 (user goal) | ||
[__1] rejecting: issue6961:!test (constraint from config file, command line flag, or user target requires opposite flag selection) | ||
[__1] rejecting: issue6961:*test (requires library 'internal-lib' from issue6961, but the component is private) | ||
[__1] fail (backjumping, conflict set: issue6961, issue6961:test) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: issue6961 (3), issue6961:test (3) | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following would be built: | ||
- issue6961-0 (lib:internal-lib) (first run) | ||
- issue6961-0 (test:example) (first run) |
4 changes: 1 addition & 3 deletions
4
cabal-testsuite/PackageTests/Regression/T6961/Test/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,5 +1,3 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ | ||
-- fails, but it shouldn't. | ||
-- https://github.com/haskell/cabal/issues/6961 | ||
fails $ cabal "v2-build" ["all", "--dry-run", "--enable-tests"] | ||
cabal "v2-build" ["all", "--dry-run", "--enable-tests"] |
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