{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/5123","repository_url":"https://api.github.com/repos/bundler/bundler","labels_url":"https://api.github.com/repos/bundler/bundler/issues/5123/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/5123/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/5123/events","html_url":"https://github.com/bundler/bundler/pull/5123","id":184802185,"number":5123,"title":"use `command -v` to check for otool and ldd","user":{"login":"colby-swandale","id":996377,"avatar_url":"https://avatars.githubusercontent.com/u/996377?v=3","gravatar_id":"","url":"https://api.github.com/users/colby-swandale","html_url":"https://github.com/colby-swandale","followers_url":"https://api.github.com/users/colby-swandale/followers","following_url":"https://api.github.com/users/colby-swandale/following{/other_user}","gists_url":"https://api.github.com/users/colby-swandale/gists{/gist_id}","starred_url":"https://api.github.com/users/colby-swandale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colby-swandale/subscriptions","organizations_url":"https://api.github.com/users/colby-swandale/orgs","repos_url":"https://api.github.com/users/colby-swandale/repos","events_url":"https://api.github.com/users/colby-swandale/events{/privacy}","received_events_url":"https://api.github.com/users/colby-swandale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-24T10:21:28Z","updated_at":"2016-10-24T13:28:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/5123","html_url":"https://github.com/bundler/bundler/pull/5123","diff_url":"https://github.com/bundler/bundler/pull/5123.diff","patch_url":"https://github.com/bundler/bundler/pull/5123.patch"},"body":"Hi, there is some weird behaviour in `bundler doctor`. Bundler is checking for the existence of the `ldd` and `otool` commands but is not correctly redirecting the output of `otool`. Example being on the latest version of bundler:\r\n\r\n```\r\n› bundle doctor\r\nllvm-otool(1): Apple Inc. version cctools-895\r\nllvm-otool(1): Apple Inc. version cctools-895\r\nllvm-otool(1): Apple Inc. version cctools-895\r\nllvm-otool(1): Apple Inc. version cctools-895\r\nllvm-otool(1): Apple Inc. version cctools-895\r\nllvm-otool(1): Apple Inc. version cctools-895\r\n```\r\n This is happening on Mac OS (10.12). I have refactored the check of these tool using the built in `command` function, this lets us check for the existence of these commands without actually having to execute them.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/255740187","html_url":"https://github.com/bundler/bundler/pull/5123#issuecomment-255740187","issue_url":"https://api.github.com/repos/bundler/bundler/issues/5123","id":255740187,"user":{"login":"colby-swandale","id":996377,"avatar_url":"https://avatars.githubusercontent.com/u/996377?v=3","gravatar_id":"","url":"https://api.github.com/users/colby-swandale","html_url":"https://github.com/colby-swandale","followers_url":"https://api.github.com/users/colby-swandale/followers","following_url":"https://api.github.com/users/colby-swandale/following{/other_user}","gists_url":"https://api.github.com/users/colby-swandale/gists{/gist_id}","starred_url":"https://api.github.com/users/colby-swandale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colby-swandale/subscriptions","organizations_url":"https://api.github.com/users/colby-swandale/orgs","repos_url":"https://api.github.com/users/colby-swandale/repos","events_url":"https://api.github.com/users/colby-swandale/events{/privacy}","received_events_url":"https://api.github.com/users/colby-swandale/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T13:28:27Z","updated_at":"2016-10-24T13:28:27Z","body":"@segiddins Thats a fair point, my only issue with `Bundler.which` is that it will be assumed that `ldd` or `otool` is actually a file in the current users `$PATH` and not an alias/function . This probably won't be an issue for 99.99% of people (it is for me) but i'm fine to use `Bundler.which` instead."}}
{"actor":{"display_login":"colby-swandale"}}