haskell / haskell/cabal

Integrate Hackage checks in `cabal check`

Open
#8,801 0 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/check type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Hackage server [performs a number of checks](https://github.com/haskell/hackage-server/blob/e907996430c6720f61ad6313d75f6f3a97cfb334/src/Distribution/Server/Packages/Unpack.hs) upon upload before accepting the package.

Some of those checks are meaningful only if done by hackage (e.g. `Check for an existing x-revision on server`, we cannot run that locally in a meaningful way), but others could be integrated into `cabal check`. Steps:
- [ ] list all the checks done
- [ ] see which one can be translated into `cabal check`
- [ ] integrate them

For this to be useful #8427 needs to be merged and #8587 too, so users can ignore can ignore some of the checks if they don’t plan to upload to Hackage (i.e.: proprietary license refusal).

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.