Option to run test suites after `sdist`
Open
old-milestone: ⊥
re: extra-source-files
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Just floating an idea here. A very common test suite failure is that some source file is included in source control, but not included in the sdist. Usually the fix is simple: add the extra file to `extra-source-files`. But it would be nice to have this kind of check built into `cabal-install`. Perhaps something along the lines of exposing `cabal sdist --check` which:
- Runs a `cabal check`
- Create a tarball
- Unpacks the tarball into a temporary folder
- Runs `cabal configure --enable-tests && cabal build && cabal test` from that folder.
Contributor guide
Assessment
This issue has not been assessed yet.