Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kitchen ShellOut to Vagrant with Bundler 1.6.0 install fails #401

Closed
martinisoft opened this issue Apr 1, 2014 · 6 comments
Closed

Kitchen ShellOut to Vagrant with Bundler 1.6.0 install fails #401

martinisoft opened this issue Apr 1, 2014 · 6 comments
Assignees

Comments

@martinisoft
Copy link

After upgrading Vagrant to 1.5.1, then upgrading Bundler to 1.6.0, I can no longer use kitchen setup/test commands. Downgrading to Bundler 1.5.3 has temporarily resolved the problem, but it seems there is a temporary problem with a breaking change to their API.

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ShellOut::ShellCommandFailed
>>>>>> Message: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT:
STDERR: /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/bundler.rb:31:in `initialize': undefined method `new' for Bundler::UI:Module (NoMethodError)
        from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/bundler.rb:17:in `new'
        from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/bundler.rb:17:in `instance'
        from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.5.1/lib/vagrant/pre-rubygems.rb:22:in `<main>'
---- End output of vagrant --version ----
Ran vagrant --version returned 1
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
@fnichol
Copy link
Contributor

fnichol commented Apr 1, 2014

Oh dear, I will take a look at that this morning. It could be an issue in Mixlib::ShellOut as well. Thank you for reporting!

@fnichol fnichol self-assigned this Apr 1, 2014
@martinisoft
Copy link
Author

Welcome! Seems there was a similar issue reported to Vagrant, but think this is isolated to Test Kitchen.

@sethvargo
Copy link
Contributor

@martinisoft do you have a link to the Vagrant issue for xlinking?

@ryancragun
Copy link

This was fixed for me with a Vagrant 1.5.4 update.

@aspiers
Copy link

aspiers commented Apr 27, 2014

Looks like this was broken by rubygems/bundler@5e38e2d7. I would have expected bundler to follow semantic versioning but maybe I misunderstood something.

aspiers pushed a commit to aspiers/vagrant that referenced this issue Apr 30, 2014
bundler changed their API for Bundler::UI in 1.6.0 via this commit:

  rubygems/bundler@5e38e2d7

This caused various issues, e.g.

  hashicorp#3451
  test-kitchen/test-kitchen#401

which will hopefully be resolved by teaching vagrant to cope with both
API versions.
aspiers pushed a commit to aspiers/vagrant that referenced this issue Apr 30, 2014
bundler changed their API for Bundler::UI in 1.6.0 via this commit:

  rubygems/bundler@5e38e2d7

This caused various issues, e.g.

  hashicorp#3451
  test-kitchen/test-kitchen#401

which will hopefully be resolved by teaching vagrant to cope with both
API versions.
@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants