From 9d553412eef7efbd6d337cd00d6e7a51a1900fd4 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Wed, 6 Apr 2022 15:34:09 -0500 Subject: [PATCH] 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 --- test/vagrant-spec/scripts/ubuntu-install-vagrant.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/vagrant-spec/scripts/ubuntu-install-vagrant.sh b/test/vagrant-spec/scripts/ubuntu-install-vagrant.sh index b343be8ac..974fe9bf3 100755 --- a/test/vagrant-spec/scripts/ubuntu-install-vagrant.sh +++ b/test/vagrant-spec/scripts/ubuntu-install-vagrant.sh @@ -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