{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/569","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/569/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/569/events","html_url":"https://github.com/commercialhaskell/stack/issues/569","id":94581907,"number":569,"title":"Add stack cp, clarify stack install","user":{"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},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/discuss","name":"discuss","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5","html_url":"https://github.com/commercialhaskell/stack/milestones/0.2.0.0","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5/labels","id":1166824,"number":5,"title":"0.2.0.0","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":11,"closed_issues":104,"state":"open","created_at":"2015-06-16T14:23:31Z","updated_at":"2015-07-20T14:05:02Z","due_on":"2015-08-31T07:00:00Z","closed_at":null},"comments":22,"created_at":"2015-07-12T17:06:48Z","updated_at":"2015-07-21T04:59:39Z","closed_at":"2015-07-19T15:34:04Z","body":"This was spawned by a [mailing list discussion](https://groups.google.com/d/msgid/haskell-stack/59ba0d97-3b87-43db-bed2-62313316db30%40googlegroups.com?utm_medium=email&utm_source=footer). I'm going to summarize what I think is the conclusion of that discussion:\r\n\r\n* `stack install` is a misnomer, since this is just about copying an executable to a new directory\r\n* As such, we should ideally rename the command to `stack cp` or similar\r\n* However, many users will expect a `stack install` command to exist\r\n* So: we'll add a `stack cp` command with the exact behavior of `stack install` today, and modify `stack install` to (1) give a message \"you probably meant `stack cp`\" (possibly with a link to this very issue?) and then perform a `stack cp`\r\n\r\nIf we go this route, I imagine we should do something quite similar for `stack uninstall`, but that's really a separate discussion."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/123161435","html_url":"https://github.com/commercialhaskell/stack/issues/569#issuecomment-123161435","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/569","id":123161435,"user":{"login":"afcowie","id":1088511,"avatar_url":"https://avatars.githubusercontent.com/u/1088511?v=3","gravatar_id":"","url":"https://api.github.com/users/afcowie","html_url":"https://github.com/afcowie","followers_url":"https://api.github.com/users/afcowie/followers","following_url":"https://api.github.com/users/afcowie/following{/other_user}","gists_url":"https://api.github.com/users/afcowie/gists{/gist_id}","starred_url":"https://api.github.com/users/afcowie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afcowie/subscriptions","organizations_url":"https://api.github.com/users/afcowie/orgs","repos_url":"https://api.github.com/users/afcowie/repos","events_url":"https://api.github.com/users/afcowie/events{/privacy}","received_events_url":"https://api.github.com/users/afcowie/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T04:59:39Z","updated_at":"2015-07-21T04:59:39Z","body":"Furthermore, if there are things other than binaries that do need installing, then `stack install` is the right place to do it. You had it brilliantly figured out: install to _~/.local/bin_, permitting self-upgrading. If other things need to be installed, then they can go to _~/.local/share/*_ etc just as they're supposed to.\r\n\r\nThe only thing you're missing, perhaps, is the notion of either `configure --prefix=/usr/or/whatever` and/or `DESTDIR=/build/target make install` — those are the things that allow a package manager to pick up the result and plonk it whereever you're going. Your until two-days ago brilliant defaults were to assume it's a user and that they just want to install it locally so it works.\r\n\r\n`stack install` was precisely the correct command.\r\n\r\nAfC"}}