{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1424","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1424/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1424/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1424/events","html_url":"https://github.com/rust-lang/cargo/issues/1424","id":61922113,"number":1424,"title":"Building a binary with cargo named `build` fails with `Is a directory (os error 21)`","user":{"login":"daboross","id":1152146,"avatar_url":"https://avatars.githubusercontent.com/u/1152146?v=3","gravatar_id":"","url":"https://api.github.com/users/daboross","html_url":"https://github.com/daboross","followers_url":"https://api.github.com/users/daboross/followers","following_url":"https://api.github.com/users/daboross/following{/other_user}","gists_url":"https://api.github.com/users/daboross/gists{/gist_id}","starred_url":"https://api.github.com/users/daboross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daboross/subscriptions","organizations_url":"https://api.github.com/users/daboross/orgs","repos_url":"https://api.github.com/users/daboross/repos","events_url":"https://api.github.com/users/daboross/events{/privacy}","received_events_url":"https://api.github.com/users/daboross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/cargo/labels/A-errors","name":"A-errors","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-15T23:46:58Z","updated_at":"2015-05-18T23:19:24Z","closed_at":null,"body":"Whenever I create a project named simply `build` (any other name works), it fails building with `An unknown error occurred`. When run with `--verbose`, it fails with `Is a directory (os error 21)`.\r\n\r\nIf the project is just a library project without a binary, the compilation runs normally.\r\n\r\nShell commands/output:\r\n```\r\n$ cargo new --bin build\r\n$ cd build\r\n$ cargo build\r\n   Compiling build v0.0.1 (file:///home/daboross/build)\r\nBuild failed, waiting for other jobs to finish...\r\nAn unknown error occurred\r\n\r\nTo learn more, run the command again with --verbose.\r\n$ cargo build --verbose\r\n   Compiling build v0.0.1 (file:///home/daboross/build)\r\nIs a directory (os error 21)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/103254729","html_url":"https://github.com/rust-lang/cargo/issues/1424#issuecomment-103254729","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/1424","id":103254729,"user":{"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},"created_at":"2015-05-18T23:19:24Z","updated_at":"2015-05-18T23:19:24Z","body":"Closing in favor of https://github.com/rust-lang/cargo/issues/1618 which I think is the solution we want to take."}}