Skip to content

Commit

Permalink
Explain what is wrong with cabal.sub-rs.test.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Jan 14, 2024
1 parent ecdd861 commit 3871c43
Showing 1 changed file with 8 additions and 0 deletions.
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"]

0 comments on commit 3871c43

Please sign in to comment.