{"action":"closed","number":2924,"pull_request":{"url":"https://api.github.com/repos/rust-lang/cargo/pulls/2924","id":79044974,"html_url":"https://github.com/rust-lang/cargo/pull/2924","diff_url":"https://github.com/rust-lang/cargo/pull/2924.diff","patch_url":"https://github.com/rust-lang/cargo/pull/2924.patch","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2924","number":2924,"state":"closed","locked":false,"title":"Print a more useful error message when the target binary can't be removed","user":{"login":"luser","id":286001,"avatar_url":"https://avatars.githubusercontent.com/u/286001?v=3","gravatar_id":"","url":"https://api.github.com/users/luser","html_url":"https://github.com/luser","followers_url":"https://api.github.com/users/luser/followers","following_url":"https://api.github.com/users/luser/following{/other_user}","gists_url":"https://api.github.com/users/luser/gists{/gist_id}","starred_url":"https://api.github.com/users/luser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luser/subscriptions","organizations_url":"https://api.github.com/users/luser/orgs","repos_url":"https://api.github.com/users/luser/repos","events_url":"https://api.github.com/users/luser/events{/privacy}","received_events_url":"https://api.github.com/users/luser/received_events","type":"User","site_admin":false},"body":"This happens sometimes on Windows if the target is still running, and right\r\nnow cargo prints a very cryptic message:\r\n```\r\n$ cargo build\r\n   Compiling sccache v0.1.0 (file:///C:/build/sccache2)\r\nAn unknown error occurred\r\n```\r\n\r\nWith this patch we get a much more useful error:\r\n```\r\n$ ../cargo/target/debug/cargo build\r\n   Compiling sccache v0.1.0 (file:///C:/build/sccache2)\r\nerror: Could not remove file: c:\\build\\sccache2\\target\\debug\\sccache.exe.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```","created_at":"2016-07-27T15:26:21Z","updated_at":"2016-07-27T16:28:10Z","closed_at":"2016-07-27T16:28:10Z","merged_at":"2016-07-27T16:28:10Z","merge_commit_sha":"9f4330d6c17675273e7037971ce24beb949376fd","assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/cargo/pulls/2924/commits","review_comments_url":"https://api.github.com/repos/rust-lang/cargo/pulls/2924/comments","review_comment_url":"https://api.github.com/repos/rust-lang/cargo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2924/comments","statuses_url":"https://api.github.com/repos/rust-lang/cargo/statuses/9f4330d6c17675273e7037971ce24beb949376fd","head":{"label":"luser:error-removing-file","ref":"error-removing-file","sha":"9f4330d6c17675273e7037971ce24beb949376fd","user":{"login":"luser","id":286001,"avatar_url":"https://avatars.githubusercontent.com/u/286001?v=3","gravatar_id":"","url":"https://api.github.com/users/luser","html_url":"https://github.com/luser","followers_url":"https://api.github.com/users/luser/followers","following_url":"https://api.github.com/users/luser/following{/other_user}","gists_url":"https://api.github.com/users/luser/gists{/gist_id}","starred_url":"https://api.github.com/users/luser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luser/subscriptions","organizations_url":"https://api.github.com/users/luser/orgs","repos_url":"https://api.github.com/users/luser/repos","events_url":"https://api.github.com/users/luser/events{/privacy}","received_events_url":"https://api.github.com/users/luser/received_events","type":"User","site_admin":false},"repo":{"id":64319469,"name":"cargo","full_name":"luser/cargo","owner":{"login":"luser","id":286001,"avatar_url":"https://avatars.githubusercontent.com/u/286001?v=3","gravatar_id":"","url":"https://api.github.com/users/luser","html_url":"https://github.com/luser","followers_url":"https://api.github.com/users/luser/followers","following_url":"https://api.github.com/users/luser/following{/other_user}","gists_url":"https://api.github.com/users/luser/gists{/gist_id}","starred_url":"https://api.github.com/users/luser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luser/subscriptions","organizations_url":"https://api.github.com/users/luser/orgs","repos_url":"https://api.github.com/users/luser/repos","events_url":"https://api.github.com/users/luser/events{/privacy}","received_events_url":"https://api.github.com/users/luser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luser/cargo","description":"The Rust package manager","fork":true,"url":"https://api.github.com/repos/luser/cargo","forks_url":"https://api.github.com/repos/luser/cargo/forks","keys_url":"https://api.github.com/repos/luser/cargo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luser/cargo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luser/cargo/teams","hooks_url":"https://api.github.com/repos/luser/cargo/hooks","issue_events_url":"https://api.github.com/repos/luser/cargo/issues/events{/number}","events_url":"https://api.github.com/repos/luser/cargo/events","assignees_url":"https://api.github.com/repos/luser/cargo/assignees{/user}","branches_url":"https://api.github.com/repos/luser/cargo/branches{/branch}","tags_url":"https://api.github.com/repos/luser/cargo/tags","blobs_url":"https://api.github.com/repos/luser/cargo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luser/cargo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luser/cargo/git/refs{/sha}","trees_url":"https://api.github.com/repos/luser/cargo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luser/cargo/statuses/{sha}","languages_url":"https://api.github.com/repos/luser/cargo/languages","stargazers_url":"https://api.github.com/repos/luser/cargo/stargazers","contributors_url":"https://api.github.com/repos/luser/cargo/contributors","subscribers_url":"https://api.github.com/repos/luser/cargo/subscribers","subscription_url":"https://api.github.com/repos/luser/cargo/subscription","commits_url":"https://api.github.com/repos/luser/cargo/commits{/sha}","git_commits_url":"https://api.github.com/repos/luser/cargo/git/commits{/sha}","comments_url":"https://api.github.com/repos/luser/cargo/comments{/number}","issue_comment_url":"https://api.github.com/repos/luser/cargo/issues/comments{/number}","contents_url":"https://api.github.com/repos/luser/cargo/contents/{+path}","compare_url":"https://api.github.com/repos/luser/cargo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luser/cargo/merges","archive_url":"https://api.github.com/repos/luser/cargo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luser/cargo/downloads","issues_url":"https://api.github.com/repos/luser/cargo/issues{/number}","pulls_url":"https://api.github.com/repos/luser/cargo/pulls{/number}","milestones_url":"https://api.github.com/repos/luser/cargo/milestones{/number}","notifications_url":"https://api.github.com/repos/luser/cargo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luser/cargo/labels{/name}","releases_url":"https://api.github.com/repos/luser/cargo/releases{/id}","deployments_url":"https://api.github.com/repos/luser/cargo/deployments","created_at":"2016-07-27T15:20:35Z","updated_at":"2016-07-27T15:20:38Z","pushed_at":"2016-07-27T15:26:02Z","git_url":"git://github.com/luser/cargo.git","ssh_url":"git@github.com:luser/cargo.git","clone_url":"https://github.com/luser/cargo.git","svn_url":"https://github.com/luser/cargo","homepage":"https://crates.io/","size":11358,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"4404c62fe5939c10f1c3816a54d960f1c924bc5d","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":17420913,"name":"cargo","full_name":"rust-lang/cargo","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/cargo","description":"The Rust package manager","fork":false,"url":"https://api.github.com/repos/rust-lang/cargo","forks_url":"https://api.github.com/repos/rust-lang/cargo/forks","keys_url":"https://api.github.com/repos/rust-lang/cargo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/cargo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/cargo/teams","hooks_url":"https://api.github.com/repos/rust-lang/cargo/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/cargo/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/cargo/events","assignees_url":"https://api.github.com/repos/rust-lang/cargo/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/cargo/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/cargo/tags","blobs_url":"https://api.github.com/repos/rust-lang/cargo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/cargo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/cargo/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/cargo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/cargo/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/cargo/languages","stargazers_url":"https://api.github.com/repos/rust-lang/cargo/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/cargo/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/cargo/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/cargo/subscription","commits_url":"https://api.github.com/repos/rust-lang/cargo/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/cargo/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/cargo/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/cargo/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/cargo/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/cargo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/cargo/merges","archive_url":"https://api.github.com/repos/rust-lang/cargo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/cargo/downloads","issues_url":"https://api.github.com/repos/rust-lang/cargo/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/cargo/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/cargo/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/cargo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/cargo/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/cargo/releases{/id}","deployments_url":"https://api.github.com/repos/rust-lang/cargo/deployments","created_at":"2014-03-04T23:20:42Z","updated_at":"2016-07-27T05:16:03Z","pushed_at":"2016-07-27T16:28:09Z","git_url":"git://github.com/rust-lang/cargo.git","ssh_url":"git@github.com:rust-lang/cargo.git","clone_url":"https://github.com/rust-lang/cargo.git","svn_url":"https://github.com/rust-lang/cargo","homepage":"https://crates.io/","size":71918,"stargazers_count":1743,"watchers_count":1743,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":410,"mirror_url":null,"open_issues_count":323,"forks":410,"open_issues":323,"watchers":1743,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/cargo/pulls/2924"},"html":{"href":"https://github.com/rust-lang/cargo/pull/2924"},"issue":{"href":"https://api.github.com/repos/rust-lang/cargo/issues/2924"},"comments":{"href":"https://api.github.com/repos/rust-lang/cargo/issues/2924/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/cargo/pulls/2924/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/cargo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/cargo/pulls/2924/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/cargo/statuses/9f4330d6c17675273e7037971ce24beb949376fd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bors","id":3372342,"avatar_url":"https://avatars.githubusercontent.com/u/3372342?v=3","gravatar_id":"","url":"https://api.github.com/users/bors","html_url":"https://github.com/bors","followers_url":"https://api.github.com/users/bors/followers","following_url":"https://api.github.com/users/bors/following{/other_user}","gists_url":"https://api.github.com/users/bors/gists{/gist_id}","starred_url":"https://api.github.com/users/bors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors/subscriptions","organizations_url":"https://api.github.com/users/bors/orgs","repos_url":"https://api.github.com/users/bors/repos","events_url":"https://api.github.com/users/bors/events{/privacy}","received_events_url":"https://api.github.com/users/bors/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"bors"}}