{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/24574838","id":24574838,"diff_hunk":"@@ -560,6 +573,25 @@ def self.path name\n     Pathname.new(\"#{HOMEBREW_LIBRARY}/Formula/#{name.downcase}.rb\")\n   end\n \n+  def self.search_path name\n+    p = Formula.path(name)\n+    return p if p.file?\n+    name = name.downcase\n+    taps = Dir[\"#{HOMEBREW_LIBRARY}/Taps/*/*/\"]\n+    p = taps.map { |tap| Dir[\"#{tap}#{name}.rb\", \"#{tap}Formula/#{name}.rb\", \"#{tap}HomebrewFormula/#{name}.rb\"] }\n+    p = p.flatten.map(&Pathname.method(:new)).select { |f| f.file? }\n+    case p.size\n+    when 0; nil\n+    when 1; p[0]\n+    else\n+      odie <<-EOS.undent","path":"Library/Homebrew/formula.rb","position":39,"original_position":39,"commit_id":"70cbe7125bd370504bec57c233f3361ae894167e","original_commit_id":"70cbe7125bd370504bec57c233f3361ae894167e","user":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"body":"I'm not sure here. Should I use `odie` or `ofail` + `raise` or something else? @mikemcquaid  ","created_at":"2015-02-12T11:39:40Z","updated_at":"2015-02-12T11:39:40Z","html_url":"https://github.com/Homebrew/homebrew/pull/36753#discussion_r24574838","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/24574838"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/36753#discussion_r24574838"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753","id":29159283,"html_url":"https://github.com/Homebrew/homebrew/pull/36753","diff_url":"https://github.com/Homebrew/homebrew/pull/36753.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/36753.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/36753","number":36753,"state":"open","locked":false,"title":"[wip] make tap symlink free","user":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"body":"Per https://github.com/Homebrew/homebrew/issues/36731\r\n\r\nPing @mikemcquaid, @jacknagel, @DomT4 ","created_at":"2015-02-12T08:02:36Z","updated_at":"2015-02-12T11:39:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a92dc03bce6ff6b4104a7324dc55a665ed9bcb7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/36753/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/70cbe7125bd370504bec57c233f3361ae894167e","head":{"label":"xu-cheng:tap-symlink-free","ref":"tap-symlink-free","sha":"70cbe7125bd370504bec57c233f3361ae894167e","user":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"repo":{"id":17541180,"name":"homebrew","full_name":"xu-cheng/homebrew","owner":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xu-cheng/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/xu-cheng/homebrew","forks_url":"https://api.github.com/repos/xu-cheng/homebrew/forks","keys_url":"https://api.github.com/repos/xu-cheng/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xu-cheng/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xu-cheng/homebrew/teams","hooks_url":"https://api.github.com/repos/xu-cheng/homebrew/hooks","issue_events_url":"https://api.github.com/repos/xu-cheng/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/xu-cheng/homebrew/events","assignees_url":"https://api.github.com/repos/xu-cheng/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/xu-cheng/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/xu-cheng/homebrew/tags","blobs_url":"https://api.github.com/repos/xu-cheng/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xu-cheng/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xu-cheng/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/xu-cheng/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xu-cheng/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/xu-cheng/homebrew/languages","stargazers_url":"https://api.github.com/repos/xu-cheng/homebrew/stargazers","contributors_url":"https://api.github.com/repos/xu-cheng/homebrew/contributors","subscribers_url":"https://api.github.com/repos/xu-cheng/homebrew/subscribers","subscription_url":"https://api.github.com/repos/xu-cheng/homebrew/subscription","commits_url":"https://api.github.com/repos/xu-cheng/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/xu-cheng/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/xu-cheng/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/xu-cheng/homebrew/issues/comments/{number}","contents_url":"https://api.github.com/repos/xu-cheng/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/xu-cheng/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xu-cheng/homebrew/merges","archive_url":"https://api.github.com/repos/xu-cheng/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xu-cheng/homebrew/downloads","issues_url":"https://api.github.com/repos/xu-cheng/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/xu-cheng/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/xu-cheng/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/xu-cheng/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xu-cheng/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/xu-cheng/homebrew/releases{/id}","created_at":"2014-03-08T12:05:07Z","updated_at":"2015-02-12T11:20:59Z","pushed_at":"2015-02-12T11:32:31Z","git_url":"git://github.com/xu-cheng/homebrew.git","ssh_url":"git@github.com:xu-cheng/homebrew.git","clone_url":"https://github.com/xu-cheng/homebrew.git","svn_url":"https://github.com/xu-cheng/homebrew","homepage":"http://brew.sh","size":55771,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"Homebrew:master","ref":"master","sha":"fa839bf8d939293d4e17038b8923331c986ee016","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":206084,"name":"homebrew","full_name":"Homebrew/homebrew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/homebrew","description":"The missing package manager for OS X.","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew","forks_url":"https://api.github.com/repos/Homebrew/homebrew/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/{number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew/releases{/id}","created_at":"2009-05-20T19:38:37Z","updated_at":"2015-02-12T11:16:58Z","pushed_at":"2015-02-12T11:16:58Z","git_url":"git://github.com/Homebrew/homebrew.git","ssh_url":"git@github.com:Homebrew/homebrew.git","clone_url":"https://github.com/Homebrew/homebrew.git","svn_url":"https://github.com/Homebrew/homebrew","homepage":"http://brew.sh","size":1175933,"stargazers_count":21433,"watchers_count":21433,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":10726,"mirror_url":null,"open_issues_count":299,"forks":10726,"open_issues":299,"watchers":21433,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/36753"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/36753"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/36753/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36753/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/70cbe7125bd370504bec57c233f3361ae894167e"}}}}