{"action":"closed","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2158","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2158/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2158/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2158/events","html_url":"https://github.com/haskell/cabal/issues/2158","id":45544302,"number":2158,"title":"Change the default behavior of `cabal upload`","user":{"login":"jfischoff","id":168507,"avatar_url":"https://avatars.githubusercontent.com/u/168507?v=3","gravatar_id":"","url":"https://api.github.com/users/jfischoff","html_url":"https://github.com/jfischoff","followers_url":"https://api.github.com/users/jfischoff/followers","following_url":"https://api.github.com/users/jfischoff/following{/other_user}","gists_url":"https://api.github.com/users/jfischoff/gists{/gist_id}","starred_url":"https://api.github.com/users/jfischoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfischoff/subscriptions","organizations_url":"https://api.github.com/users/jfischoff/orgs","repos_url":"https://api.github.com/users/jfischoff/repos","events_url":"https://api.github.com/users/jfischoff/events{/privacy}","received_events_url":"https://api.github.com/users/jfischoff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/cabal-install","name":"cabal-install","color":"68CFC4"},{"url":"https://api.github.com/repos/haskell/cabal/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/haskell/cabal/labels/high-priority","name":"high-priority","color":"e11d21"},{"url":"https://api.github.com/repos/haskell/cabal/labels/library","name":"library","color":"AECF38"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/haskell/cabal/milestones/29","html_url":"https://github.com/haskell/cabal/milestones/cabal-install-1.24","labels_url":"https://api.github.com/repos/haskell/cabal/milestones/29/labels","id":929438,"number":29,"title":"cabal-install-1.24","description":"","creator":{"login":"tibbe","id":17277,"avatar_url":"https://avatars.githubusercontent.com/u/17277?v=3","gravatar_id":"","url":"https://api.github.com/users/tibbe","html_url":"https://github.com/tibbe","followers_url":"https://api.github.com/users/tibbe/followers","following_url":"https://api.github.com/users/tibbe/following{/other_user}","gists_url":"https://api.github.com/users/tibbe/gists{/gist_id}","starred_url":"https://api.github.com/users/tibbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibbe/subscriptions","organizations_url":"https://api.github.com/users/tibbe/orgs","repos_url":"https://api.github.com/users/tibbe/repos","events_url":"https://api.github.com/users/tibbe/events{/privacy}","received_events_url":"https://api.github.com/users/tibbe/received_events","type":"User","site_admin":false},"open_issues":89,"closed_issues":1,"state":"open","created_at":"2015-01-09T23:38:12Z","updated_at":"2015-04-24T13:47:16Z","due_on":"2015-08-30T22:00:00Z","closed_at":null},"comments":2,"created_at":"2014-10-11T07:15:47Z","updated_at":"2015-04-24T13:47:16Z","closed_at":"2015-04-24T13:47:16Z","body":"Currently cabal upload just uploads a premade sdist. \r\n\r\nI think the default behavior should change to make it easier to upload to Hackage, and to distribute the work of documentation building to clients.\r\n\r\nI think generating and uploading a sdist with doc should be the default. If I want to upload an older version, that should be possible with an additional flag, e.g.\r\n\r\n```bash\r\n$ cabal upload \r\n```\r\nwould be equivalent to \r\n```bash\r\n$ cabal sdist && cabal upload dist/some-version.tar.gz && cabal haddock && upload-docs-by-glguy\r\n```\r\nThe old behavior can be regained with.\r\n```bash\r\n$ cabal upload --no-docs --with-sdist=dist/some.tar.gz\r\n```\r\nLess to type for the typical case, and I think offloading work from Hackage to clients gives Hackage more resources to scale.\r\n\r\nOriginally proposed here: https://github.com/haskell/cabal/issues/2156#issuecomment-58726528"}}