Closed b00ga closed 5 years ago
Apparently installing kitchen-vagrant pulls in the latest (2.0.0) test-kitchen. After either a gem install test-kitchen kitchen-vagrant kitchen-ansible
or only a gem install kitchen-vagrant kitchen-ansible
, I get two test-kitchens:
$ gem list --local --quiet test-kitchen
test-kitchen (2.0.0, 1.24.0)
I've performed a gem uninstall test-kitchen -v 2.0.0
, and my kitchen list
commands don't throw errors now. Will test if kitchen-vagrant is still working shortly.
Did some test runs, and removing test-kitchen 2.0 to fallback on 1.24 is a viable workaround for me so far.
I will test against test-kitchen 2.0 and check i'm working.
fixed in version 0.50.0
Just went to install test-kitchen w/ kitchen-ansible on a new Mac to update an internal test-kitchen repo that uses Ansible. When running
kitchen list
, I'm getting:This was on macOS Mojave with ruby 2.4 from Macports. gem install was giving me test-kitchen 2.0. Also tried with Macports ruby 2.3.
To sanity check that this wasn't a Mac specific or Macports specific issue, I tested on some Linuxen to confirm. Ubuntu 16.04 (comes with Ruby: ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]), I'm seeing the same issue.
I have some CentOS 7 VMs with newer ruby via the ruby-build project (https://github.com/rbenv/ruby-build). I tried building the latest ruby for 2.2 -> 2.6. You have to run a really old version of test-kitchen to install against 2.2, but that old version with latest kitchen-vagrant/kitchen-ansible works. 2.3 -> 2.6 throw the same error above.
Here are the combinations I tested on CentOS7/ruby-build