-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fail when version of target gem is not satisfied #37
Comments
ok good point, now consider an example from @wycats gist: https://gist.github.com/85d4c0a9844b11f104cb where you use anyway - you would like to have an option to do a warning instead and allow to run it anyway - good idea (options are good). |
@mojavelinux could you also consider this request with #36 - maybe they could be mixed ? like |
@envygeeks scheduling for |
released as |
Currently, if the version specified in the Gemfile for the target gem is not installed, then noexec gives up and allows Ruby to select the default version. IMHO, this defeats the whole purpose of using bundle exec. It should fail fast (or make a setting to determine whether it does or not).
To reproduce, install a gem. Then, create a Gemfile that specifies it as a requirement.
Then, get it installed.
Next, change the version to something different.
Finally, run the binary and consult the version.
You'll see that it reports "3.1.21" instead of failing to execute.
Turning on debug, you'll see that noexec wasn't happy with what was going on:
I think this should be a failure scenario.
The text was updated successfully, but these errors were encountered: