{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/hackage-server/issues/259","labels_url":"https://api.github.com/repos/haskell/hackage-server/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/haskell/hackage-server/issues/259/comments","events_url":"https://api.github.com/repos/haskell/hackage-server/issues/259/events","html_url":"https://github.com/haskell/hackage-server/issues/259","id":41108825,"number":259,"title":"Configurable cabal strictness","user":{"login":"glasserc","id":17006,"avatar_url":"https://avatars.githubusercontent.com/u/17006?v=3","gravatar_id":"","url":"https://api.github.com/users/glasserc","html_url":"https://github.com/glasserc","followers_url":"https://api.github.com/users/glasserc/followers","following_url":"https://api.github.com/users/glasserc/following{/other_user}","gists_url":"https://api.github.com/users/glasserc/gists{/gist_id}","starred_url":"https://api.github.com/users/glasserc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glasserc/subscriptions","organizations_url":"https://api.github.com/users/glasserc/orgs","repos_url":"https://api.github.com/users/glasserc/repos","events_url":"https://api.github.com/users/glasserc/events{/privacy}","received_events_url":"https://api.github.com/users/glasserc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-08-25T21:16:58Z","updated_at":"2015-04-24T18:24:44Z","closed_at":null,"body":"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\":\r\n\r\n```\r\n* The 'license' field is missing or specified as AllRightsReserved.\r\n\r\n* 'ghc-options: -Wall -Werror' makes the package very easy to break with\r\nfuture GHC versions because new GHC versions often add new warnings. Use just\r\n'ghc-options: -Wall' instead.\r\n```\r\n\r\nFor the first, we think ``AllRightsReserved`` is the \"correct\" license for not-open-source software that we do not want to distribute outside the company.\r\n\r\nFor 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.)\r\n\r\nIt 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."},"comment":{"url":"https://api.github.com/repos/haskell/hackage-server/issues/comments/96025374","html_url":"https://github.com/haskell/hackage-server/issues/259#issuecomment-96025374","issue_url":"https://api.github.com/repos/haskell/hackage-server/issues/259","id":96025374,"user":{"login":"MichaelXavier","id":15840,"avatar_url":"https://avatars.githubusercontent.com/u/15840?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelXavier","html_url":"https://github.com/MichaelXavier","followers_url":"https://api.github.com/users/MichaelXavier/followers","following_url":"https://api.github.com/users/MichaelXavier/following{/other_user}","gists_url":"https://api.github.com/users/MichaelXavier/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelXavier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelXavier/subscriptions","organizations_url":"https://api.github.com/users/MichaelXavier/orgs","repos_url":"https://api.github.com/users/MichaelXavier/repos","events_url":"https://api.github.com/users/MichaelXavier/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelXavier/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T18:24:44Z","updated_at":"2015-04-24T18:24:44Z","body":"I've noticed something odd. Let me know if this is too off topic and I'll create another ticket. I've copied the convention of lens of adding a flag 'lib-werror', that defaults to False, manual as True. Even though -Werror is under this flag. I know I've seen this as a warning before and it still accepted it but as of today, it marks my package as invalid and rejects it."}}