{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/6502","repository_url":"https://api.github.com/repos/bundler/bundler","labels_url":"https://api.github.com/repos/bundler/bundler/issues/6502/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/6502/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/6502/events","html_url":"https://github.com/bundler/bundler/pull/6502","id":316797529,"node_id":"MDExOlB1bGxSZXF1ZXN0MTgzNDIzMjg1","number":6502,"title":"Use realpath in clean_load_path","user":{"login":"ojab","id":153388,"node_id":"MDQ6VXNlcjE1MzM4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/153388?v=4","gravatar_id":"","url":"https://api.github.com/users/ojab","html_url":"https://github.com/ojab","followers_url":"https://api.github.com/users/ojab/followers","following_url":"https://api.github.com/users/ojab/following{/other_user}","gists_url":"https://api.github.com/users/ojab/gists{/gist_id}","starred_url":"https://api.github.com/users/ojab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojab/subscriptions","organizations_url":"https://api.github.com/users/ojab/orgs","repos_url":"https://api.github.com/users/ojab/repos","events_url":"https://api.github.com/users/ojab/events{/privacy}","received_events_url":"https://api.github.com/users/ojab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bundler/bundler/milestones/59","html_url":"https://github.com/bundler/bundler/milestone/59","labels_url":"https://api.github.com/repos/bundler/bundler/milestones/59/labels","id":3367315,"node_id":"MDk6TWlsZXN0b25lMzM2NzMxNQ==","number":59,"title":"1.16.3","description":null,"creator":{"login":"colby-swandale","id":996377,"node_id":"MDQ6VXNlcjk5NjM3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/996377?v=4","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},"open_issues":1,"closed_issues":12,"state":"open","created_at":"2018-05-23T01:53:50Z","updated_at":"2018-06-28T15:24:00Z","due_on":null,"closed_at":null},"comments":33,"created_at":"2018-04-23T12:48:50Z","updated_at":"2018-07-02T00:09:11Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/6502","html_url":"https://github.com/bundler/bundler/pull/6502","diff_url":"https://github.com/bundler/bundler/pull/6502.diff","patch_url":"https://github.com/bundler/bundler/pull/6502.patch"},"body":"see #6465, basically we're not rejecting `bundler_lib` because we have symlink there and real path in `$LOAD_PATH`\r\n```\r\n$ irb\r\n2.5.1 :001 > require 'bundler/setup'\r\n# what happens next will shock you\r\nFrom: /real_path/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/shared_helpers.rb @ line 339 Bundler::SharedHelpers#clean_load_path:\r\n\r\n    330: def clean_load_path\r\n    331:   # handle 1.9 where system gems are always on the load path\r\n    332:   return unless defined?(::Gem)\r\n    333:\r\n    334:   bundler_lib = bundler_ruby_lib\r\n    335:\r\n    336:   loaded_gem_paths = Bundler.rubygems.loaded_gem_paths\r\n    337:\r\n    338:   binding.pry\r\n => 339:   $LOAD_PATH.reject! do |p|\r\n    340:     path = File.expand_path(p)\r\n    341:     path = File.realpath(path) if File.exist?(path)\r\n    342:     next if path.start_with?(bundler_lib)\r\n    343:     loaded_gem_paths.delete(p)\r\n    344:   end\r\n    345:   $LOAD_PATH.uniq!\r\n    346: end\r\n\r\n[1] pry(#<Bundler::Runtime>)> bundler_lib\r\n=> \"/real_path/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib\"\r\n[2] pry(#<Bundler::Runtime>)> loaded_gem_paths\r\n=> [\"/symlinked_path/.rvm/gems/ruby-2.5.1@global/gems/did_you_mean-1.2.0/lib\",\r\n \"/symlinked_path/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib\",\r\n \"/symlinked_path/.rvm/gems/ruby-2.5.1/gems/byebug-10.0.2/lib\",\r\n \"/symlinked_path/.rvm/gems/ruby-2.5.1/extensions/x86_64-linux/2.5.0/byebug-10.0.2\",\r\n \"/symlinked_path/.rvm/gems/ruby-2.5.1/gems/coderay-1.1.2/lib\",\r\n \"/symlinked_path/.rvm/gems/ruby-2.5.1/gems/method_source-0.9.0/lib\",\r\n \"/symlinked_path/.rvm/gems/ruby-2.5.1/gems/pry-0.11.3/lib\",\r\n \"/symlinked_path/.rvm/gems/ruby-2.5.1/gems/pry-byebug-3.6.0/lib\",\r\n \"/real_path/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.0.2/lib\",\r\n \"/real_path/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/psych-3.0.2/lib\",\r\n \"/real_path/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0/psych-3.0.2\"]\r\n```"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/401642735","html_url":"https://github.com/bundler/bundler/pull/6502#issuecomment-401642735","issue_url":"https://api.github.com/repos/bundler/bundler/issues/6502","id":401642735,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTY0MjczNQ==","user":{"login":"indirect","id":78,"node_id":"MDQ6VXNlcjc4","avatar_url":"https://avatars1.githubusercontent.com/u/78?v=4","gravatar_id":"","url":"https://api.github.com/users/indirect","html_url":"https://github.com/indirect","followers_url":"https://api.github.com/users/indirect/followers","following_url":"https://api.github.com/users/indirect/following{/other_user}","gists_url":"https://api.github.com/users/indirect/gists{/gist_id}","starred_url":"https://api.github.com/users/indirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirect/subscriptions","organizations_url":"https://api.github.com/users/indirect/orgs","repos_url":"https://api.github.com/users/indirect/repos","events_url":"https://api.github.com/users/indirect/events{/privacy}","received_events_url":"https://api.github.com/users/indirect/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T00:09:11Z","updated_at":"2018-07-02T00:09:11Z","author_association":"MEMBER","body":"@chewi since this is so urgent for you, can you provide a working test that we can use to verify this issue will stay fixed?"}}
{"actor":{"display_login":"indirect"}}