{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1391","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1391/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1391/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1391/events","html_url":"https://github.com/commercialhaskell/stack/issues/1391","id":118201848,"number":1391,"title":"`stack unpack` downloads deprecated package versions","user":{"login":"borsboom","id":2164261,"avatar_url":"https://avatars.githubusercontent.com/u/2164261?v=3","gravatar_id":"","url":"https://api.github.com/users/borsboom","html_url":"https://github.com/borsboom","followers_url":"https://api.github.com/users/borsboom/followers","following_url":"https://api.github.com/users/borsboom/following{/other_user}","gists_url":"https://api.github.com/users/borsboom/gists{/gist_id}","starred_url":"https://api.github.com/users/borsboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borsboom/subscriptions","organizations_url":"https://api.github.com/users/borsboom/orgs","repos_url":"https://api.github.com/users/borsboom/repos","events_url":"https://api.github.com/users/borsboom/events{/privacy}","received_events_url":"https://api.github.com/users/borsboom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/awaiting%20pr","name":"awaiting pr","color":"fef2c0"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/newcomer","name":"newcomer","color":"fef2c0"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/1","html_url":"https://github.com/commercialhaskell/stack/milestones/P3:%20Optional","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/1/labels","id":1111900,"number":1,"title":"P3: Optional","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":110,"closed_issues":96,"state":"open","created_at":"2015-05-15T10:03:10Z","updated_at":"2016-04-15T23:56:08Z","due_on":"2017-01-31T08:00:00Z","closed_at":null},"comments":19,"created_at":"2015-11-21T15:04:01Z","updated_at":"2016-04-18T16:56:03Z","closed_at":null,"body":"##### Steps to reproduce:\r\n\r\nRun `stack unpack stack`\r\n\r\n##### Expected:\r\n\r\nIt unpacks the latest non-deprecated version (as of this filing, `stack-0.1.8.0`).\r\n\r\n##### Actual:\r\n\r\nIt unpacks `stack-9.9.9`, which is deprecated and unbuildable.\r\n\r\n```\r\n$ stack unpack stack\r\nstack-9.9.9: download\r\nUnpacked stack-9.9.9 to /Users/manny/fpco/tmp/stack-9.9.9/\r\n```"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/211472206","html_url":"https://github.com/commercialhaskell/stack/issues/1391#issuecomment-211472206","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1391","id":211472206,"user":{"login":"rrnewton","id":274582,"avatar_url":"https://avatars.githubusercontent.com/u/274582?v=3","gravatar_id":"","url":"https://api.github.com/users/rrnewton","html_url":"https://github.com/rrnewton","followers_url":"https://api.github.com/users/rrnewton/followers","following_url":"https://api.github.com/users/rrnewton/following{/other_user}","gists_url":"https://api.github.com/users/rrnewton/gists{/gist_id}","starred_url":"https://api.github.com/users/rrnewton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrnewton/subscriptions","organizations_url":"https://api.github.com/users/rrnewton/orgs","repos_url":"https://api.github.com/users/rrnewton/repos","events_url":"https://api.github.com/users/rrnewton/events{/privacy}","received_events_url":"https://api.github.com/users/rrnewton/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T16:56:02Z","updated_at":"2016-04-18T16:56:02Z","body":"(CC @RyanGlScott, @vollmerm)\r\nWe just came across the stack unpack behavior and were surprised that it was ignoring our stack.yaml.\r\n\r\nLikewise, we expected to be able to pass `--resolver=lts-5.13` to force it, as most of the stack commands we use respect `--resolver`.  But that wasn't an option.\r\n\r\nReading this issue it sounds like there's some consensus around giving stack the ability to unpack stack-dictated package versions.\r\n\r\n"}}