-
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.
Explain what is wrong with cabal.sub-rs.test.hs
- Loading branch information
1 parent
ecdd861
commit 3871c43
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...stsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.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,4 +1,12 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- cabal.sub-rs.project has "packages: r/ s/" but "cabal sdist" writes | ||
-- sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz instead of the expected | ||
-- sdist/r-0.1.tar.gz and sdist/s-0.1.tar.gz. That is wrong, "cabal sdist" | ||
-- should respect the "--project-file" option but instead picks up the default | ||
-- "cabal.project" that has "packages: p/ q/". | ||
-- | ||
-- TODO: Fix this behaviour and apply the patch cabal.sub-rs.patch to update the | ||
-- expected output to what we'd expect if "cabal sdist" respected the project. | ||
main = cabalTest . withProjectFile "cabal.sub-rs.project" $ do | ||
cabal "sdist" ["all"] |