Command to build an sdist
Open
cabal-install: cmd/build
cabal-install: cmd/sdist
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
At the moment it's not that easy to build a generated sdist. You can unpack it yourself and build it from there, but it would be nice to have a one-command way to do this.
This is useful to catch issues like missing `extra-source-files`, which seems to be quite common (and just bit me!).
I would be happy with:
- `cabal build `, ideally working for any such cabal command, including `haddock`
- `cabal sdist --build`
Related:
- Stack has an option: https://docs.haskellstack.org/en/stable/sdist_command/#-no-test-tarball-flag
- A request to also run tests: https://github.com/haskell/cabal/issues/1141
- https://github.com/haskell/cabal/issues/5064
Contributor guide
Assessment
This issue has not been assessed yet.