haskell / haskell/hackage-server

Configurable cabal strictness

Open
#259 3 comments 0 reactions 0 assignees View on GitHub
component: upload
Dominant language
Haskell
Stars
467
Forks
225
PR merge metrics
No merged PRs in 30d

Description

At work we're trying to set up a private hackage repository which can host our libraries and any software which uses those libraries. We got hackage-server up and running OK, but when we tried to upload packages to it, we got some error messages, which I believe come from "cabal check":

```
* The 'license' field is missing or specified as AllRightsReserved.

* 'ghc-options: -Wall -Werror' makes the package very easy to break with
future GHC versions because new GHC versions often add new warnings. Use just
'ghc-options: -Wall' instead.
```

For the first, we think `AllRightsReserved` is the "correct" license for not-open-source software that we do not want to distribute outside the company.

For the second, we would like to use `-Werror` as a programmatic way to enforce that code should not have warnings. We understand that in the wider world of the Internet, `-Werror` can cause problems, but we think that within the controlled environment of our company, we can manage with it. (If a new version of GHC finds something to warn about in a library, we will immediately fix the library.)

It seems to me that Hackage/Cabal should provide some setting where as administrators of the Hackage server, we can tell it, "No, really, `-Werror` and `AllRightsReserved` are OK". However, I couldn't find any such setting.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.