{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/bootsnap/issues/112","repository_url":"https://api.github.com/repos/Shopify/bootsnap","labels_url":"https://api.github.com/repos/Shopify/bootsnap/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/bootsnap/issues/112/comments","events_url":"https://api.github.com/repos/Shopify/bootsnap/issues/112/events","html_url":"https://github.com/Shopify/bootsnap/issues/112","id":283845907,"number":112,"title":"Double-Loading Gems with rbenv and homebrew","user":{"login":"averell23","id":64394,"avatar_url":"https://avatars3.githubusercontent.com/u/64394?v=4","gravatar_id":"","url":"https://api.github.com/users/averell23","html_url":"https://github.com/averell23","followers_url":"https://api.github.com/users/averell23/followers","following_url":"https://api.github.com/users/averell23/following{/other_user}","gists_url":"https://api.github.com/users/averell23/gists{/gist_id}","starred_url":"https://api.github.com/users/averell23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/averell23/subscriptions","organizations_url":"https://api.github.com/users/averell23/orgs","repos_url":"https://api.github.com/users/averell23/repos","events_url":"https://api.github.com/users/averell23/events{/privacy}","received_events_url":"https://api.github.com/users/averell23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-12-21T10:59:11Z","updated_at":"2018-02-25T12:59:33Z","closed_at":null,"author_association":"NONE","body":"I'm getting a ton of warnings on duplicate constant warnings each time I start up Rails. I drilled down a bit into this, and my theory so far is:\r\n\r\nI'm using hombrew and rbenv. Homebrew symlinks `/usr/local/opt/rbenv` to `../Cellar/rbenv/1.1.1` (or whatever the rbenv version is.\r\n\r\nThe `$LOAD_PATH` contains entries only from `/usr/local/opt/rbenv`. \r\n\r\nHowever, when Rails is loaded, the `Rails::Initializable::Initializer`(s) will have `_all_load_paths` set to the \"real\" filesystem path (i.e. `Cellar/rbenv/1.1.1/<file>`). These are then prepended to the `$LOAD_PATH` (and thus to the bootsnap cache): https://github.com/rails/rails/blob/4aaa053a2bf6b32f68c2b384ca7b909c4e849b11/railties/lib/rails/engine.rb#L554\r\n\r\nBootsnap will now resolve names like `action_view` to a new filename, and load them again if required for a second time.\r\n\r\nCurrent workaround is bundling into a local directory."},"comment":{"url":"https://api.github.com/repos/Shopify/bootsnap/issues/comments/368307417","html_url":"https://github.com/Shopify/bootsnap/issues/112#issuecomment-368307417","issue_url":"https://api.github.com/repos/Shopify/bootsnap/issues/112","id":368307417,"user":{"login":"ojab","id":153388,"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},"created_at":"2018-02-25T12:59:33Z","updated_at":"2018-02-25T12:59:33Z","author_association":"NONE","body":"Can you please check if https://github.com/Shopify/bootsnap/pull/136 fixes the issue? You can try it with `gem 'bootsnap', github: 'ojab/bootsnap', require: false` in Gemfile."}}
{"actor":{"display_login":"ojab"}}