`cabal upload` could by default do a `sdist` and upload the thus generated tar
Open
cabal-install: cmd/sdist
cabal-install: cmd/upload
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
When I do `cabal upload`, I get
```
cabal: the 'upload' command expects at least one .tar.gz archive.
```
If no archive is given on the command line, it could first do an `sdist` and then upload the thus generated `tar.gz`.
My workaround is the following `cabal-upload` shell script:
```sh
cabal sdist | tail -1 | xargs cabal upload "$@"
cabal haddock --haddock-for-hackage | tail -1 | xargs cabal upload -d "$@"
```
Contributor guide
Assessment
This issue has not been assessed yet.