{"action":"created","issue":{"url":"https://api.github.com/repos/rails/spring/issues/339","labels_url":"https://api.github.com/repos/rails/spring/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/rails/spring/issues/339/comments","events_url":"https://api.github.com/repos/rails/spring/issues/339/events","html_url":"https://github.com/rails/spring/issues/339","id":38345491,"number":339,"title":"BUNDLE_PATH environment variable ignored causing all commands to fail","user":{"login":"austinche","id":2068362,"avatar_url":"https://avatars.githubusercontent.com/u/2068362?v=3","gravatar_id":"","url":"https://api.github.com/users/austinche","html_url":"https://github.com/austinche","followers_url":"https://api.github.com/users/austinche/followers","following_url":"https://api.github.com/users/austinche/following{/other_user}","gists_url":"https://api.github.com/users/austinche/gists{/gist_id}","starred_url":"https://api.github.com/users/austinche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinche/subscriptions","organizations_url":"https://api.github.com/users/austinche/orgs","repos_url":"https://api.github.com/users/austinche/repos","events_url":"https://api.github.com/users/austinche/events{/privacy}","received_events_url":"https://api.github.com/users/austinche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-07-21T21:13:01Z","updated_at":"2015-02-18T16:52:59Z","closed_at":null,"body":"I use the environment variable BUNDLE_PATH to set the gem directory. All spring commands then fail as if no gems are installed requesting bundle install to be run. What appears to be happening is application_manager.rb calls Bundler.with_clean_env which wipes out this environment variable, then the `require \"bundler/setup\"` line fails in spring/commands.rb. I can work around this by setting `ENV['BUNDLE_PATH']` in ~/.spring.rb or by setting the bundle path in ~/.bundle/config but I would prefer to not use either of those files."},"comment":{"url":"https://api.github.com/repos/rails/spring/issues/comments/74900102","html_url":"https://github.com/rails/spring/issues/339#issuecomment-74900102","issue_url":"https://api.github.com/repos/rails/spring/issues/339","id":74900102,"user":{"login":"exchgr","id":824678,"avatar_url":"https://avatars.githubusercontent.com/u/824678?v=3","gravatar_id":"","url":"https://api.github.com/users/exchgr","html_url":"https://github.com/exchgr","followers_url":"https://api.github.com/users/exchgr/followers","following_url":"https://api.github.com/users/exchgr/following{/other_user}","gists_url":"https://api.github.com/users/exchgr/gists{/gist_id}","starred_url":"https://api.github.com/users/exchgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exchgr/subscriptions","organizations_url":"https://api.github.com/users/exchgr/orgs","repos_url":"https://api.github.com/users/exchgr/repos","events_url":"https://api.github.com/users/exchgr/events{/privacy}","received_events_url":"https://api.github.com/users/exchgr/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T16:52:59Z","updated_at":"2015-02-18T16:52:59Z","body":"Is https://github.com/rails/spring/issues/374 possibly a duplicate of this?"}}