Skip to content

Won't work if there is no system rbenv command installed #10

@dmeranda

Description

@dmeranda

In ruby_selector's Rbenv class it removes all .rbenv directories out of the $PATH and other environment variable cleansing. However, if there is no global system-installed rbenv command, then this means that it can no longer find any rbenv command to run rbenv versions --bare

$ schema_dev bundle install
...
/home/.../.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/schema_dev-3.5.1/lib/schema_dev/ruby_selector.rb:41:in ``': No such file or directory - rbenv (Errno::ENOENT)
    from /home/.../.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/schema_dev-3.5.1/lib/schema_dev/ruby_selector.rb:41:in `initialize'
    from /home/.../.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/schema_dev-3.5.1/lib/schema_dev/ruby_selector.rb:8:in `new'
    from /home/.../.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/schema_dev-3.5.1/lib/schema_dev/ruby_selector.rb:8:in `command'
...

The user-installed rbenv is:

$ which rbenv
~/.rbenv/bin/rbenv

$ rbenv --version
rbenv 0.4.0-190-gc30e096

$ rbenv versions --bare
1.9.3-p484
2.2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions