Remove rubygems-bundler to address issues executing vagrant ruby

Executing the `vagrant` in the path was yielding an error:

> Could not locate Gemfile or .bundle/ directory

Traced it back to this gem making every ruby binary into a bundler shim
This commit is contained in:
Paul Hinze 2022-04-06 15:34:09 -05:00
parent 98385bd1c0
commit 9d553412ee
No known key found for this signature in database
GPG key ID: B69DEDF2D55501C0

View file

@ -11,8 +11,12 @@ go version
curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg --import -
curl -sSL https://get.rvm.io | bash -s stable
source /usr/local/rvm/scripts/rvm
rvm install ruby-2.7
rvm --default use ruby-2.7
rvm install ruby-2.7.2
rvm --default use ruby-2.7.2
# Remove RVM's automatically installed bundler integration, which messes w/
# Vagrant's ruby binary invocation
gem uninstall -i /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0 rubygems-bundler
pushd /vagrant