haskell / haskell/cabal

`cabal upload` could by default do a `sdist` and upload the thus generated tar

Open
#7,566 1 comment 6 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.