Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable fallback to PATH from rbenv shims #1446

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Commits on Oct 7, 2022

  1. Enable fallback to PATH from rbenv shims

    Previously, when someone activated rbenv shim `foo`, rbenv would error out if `RBENV_ROOT/versions/RBENV_VERSION/bin/foo` did not exist.
    
    This change allows `foo` to be additionally looked up in PATH as fallback. This prevents a case where one of the Ruby versions is shadowing a system-wide command of the same name, preventing the use of the global command across all other Ruby versions.
    
    rbenv used to be strict around this, allowing the fallback to avoid ever falling back to system Ruby for invocations like `bundle` if the current Ruby version did not yet install Bundler. The current approach prevents this scenario by explicitly disallowing fallback for the following executables: ruby, rake, gem, bundle, bundler, irb, rdoc, ri.
    mislav committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    5ce2fd8 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2022

  1. Configuration menu
    Copy the full SHA
    82e5ad0 View commit details
    Browse the repository at this point in the history