Closed shepting closed 3 years ago
I think that this is the chunk that should likely be updated: https://github.com/bazelruby/rules_ruby/blob/master/bin/setup#L44-L48
I believe the proper approach would be to run rbenv install 2.7.1
with rbenv
if it's installed. The setup script is then able to run flawlessly:
Yikes, I don't remember why it as trying to delete it but I'll take a look and fix it. Thanks for reporting!
I can't tell for sure, but the setup script seems to try to delete
~/.rbenv
if there is nobin/rbenv
executable inside there. I believe that Homebrew installs therbenv
binary in/usr/oca/bin/rbenv
.I tried to run the
bin/setup
command on my Mac, but then was worried that it seemed to want to delete~/.rbenv
.My
~/.rbenv
just hasshims
andversions
whereas myrbenv
executable comes from/usr/local/bin/rbenv
: