-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Remove ruby version check from "bundle exec"? #2952
Comments
Bundle exec has to load the bundled environment to know what PATH to use for commands that it’s going to exec. I think the Ruby version check is an incidental part of that, but it shouldn’t be required. On Mar 29, 2014, at 9:17 AM, Kevin Menard [email protected] wrote:
|
Got it. Those are two separate lines. The version check seems to be deliberate. If I remove that, the environment is still loaded. I'll pull together a PR for review. |
Removing that
|
@indirect are those spec failures OK? |
This is a continuation to #2951. Is there any reason to do a Ruby version check when running "bundle exec" at all? As far as I can tell there's two situations:
I realize I'm stating the obvious there. But in the former case, the Ruby version check will be performed by the subcommand anyway. As of today, it's effectively being run twice. In the latter case, where the Gemfile isn't being loaded, you wouldn't see the error you see today, but does that really matter? Bundler isn't being used for anything other than a command dispatcher in that case.
The text was updated successfully, but these errors were encountered: