{"action":"created","issue":{"url":"https://api.github.com/repos/nabijaczleweli/cargo-update/issues/9","repository_url":"https://api.github.com/repos/nabijaczleweli/cargo-update","labels_url":"https://api.github.com/repos/nabijaczleweli/cargo-update/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/nabijaczleweli/cargo-update/issues/9/comments","events_url":"https://api.github.com/repos/nabijaczleweli/cargo-update/issues/9/events","html_url":"https://github.com/nabijaczleweli/cargo-update/issues/9","id":187500910,"number":9,"title":"Self-update on windows","user":{"login":"mzji","id":23279426,"avatar_url":"https://avatars.githubusercontent.com/u/23279426?v=3","gravatar_id":"","url":"https://api.github.com/users/mzji","html_url":"https://github.com/mzji","followers_url":"https://api.github.com/users/mzji/followers","following_url":"https://api.github.com/users/mzji/following{/other_user}","gists_url":"https://api.github.com/users/mzji/gists{/gist_id}","starred_url":"https://api.github.com/users/mzji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzji/subscriptions","organizations_url":"https://api.github.com/users/mzji/orgs","repos_url":"https://api.github.com/users/mzji/repos","events_url":"https://api.github.com/users/mzji/events{/privacy}","received_events_url":"https://api.github.com/users/mzji/received_events","type":"User","site_admin":false},"labels":[{"id":468744053,"url":"https://api.github.com/repos/nabijaczleweli/cargo-update/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":468744057,"url":"https://api.github.com/repos/nabijaczleweli/cargo-update/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-11-05T14:44:21Z","updated_at":"2016-11-05T19:38:26Z","closed_at":null,"body":"Basically there are 2 strategies:\r\nIf found a new version of cargo-update, then the program could:\r\n1) Start a `cargo install cargo-update --force`, and exit\r\n2) Use the method described in this SO thread:\r\n[Strategies For Replacing Program Executable in Windows](http://stackoverflow.com/questions/7198666/strategies-for-replacing-program-executable-in-windows)\r\n\r\nDon't know which one is better and/or easier to implement and maintain, just FYI. \r\nEdit: The first one have a timing issue (cargo-update must exit before the new command starts), so the second one is better."},"comment":{"url":"https://api.github.com/repos/nabijaczleweli/cargo-update/issues/comments/258635717","html_url":"https://github.com/nabijaczleweli/cargo-update/issues/9#issuecomment-258635717","issue_url":"https://api.github.com/repos/nabijaczleweli/cargo-update/issues/9","id":258635717,"user":{"login":"mzji","id":23279426,"avatar_url":"https://avatars.githubusercontent.com/u/23279426?v=3","gravatar_id":"","url":"https://api.github.com/users/mzji","html_url":"https://github.com/mzji","followers_url":"https://api.github.com/users/mzji/followers","following_url":"https://api.github.com/users/mzji/following{/other_user}","gists_url":"https://api.github.com/users/mzji/gists{/gist_id}","starred_url":"https://api.github.com/users/mzji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzji/subscriptions","organizations_url":"https://api.github.com/users/mzji/orgs","repos_url":"https://api.github.com/users/mzji/repos","events_url":"https://api.github.com/users/mzji/events{/privacy}","received_events_url":"https://api.github.com/users/mzji/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T19:38:26Z","updated_at":"2016-11-05T19:38:26Z","body":"But my method means there will be at most 1 old version living with the newest version. And if user checks update multiple times between 2 reboots (which is more common, IMHO), the old version will be deleted silently.\r\nI don't get \"false positives\", could you provide more details? Thanks!"}}
{"actor":{"display_login":"mzji"}}