Skip to content

Instantly share code, notes, and snippets.

@martinisoft
Last active August 29, 2015 14:07
Show Gist options
  • Save martinisoft/574d963bfe1e8f679e1d to your computer and use it in GitHub Desktop.
Save martinisoft/574d963bfe1e8f679e1d to your computer and use it in GitHub Desktop.
Ruby environment weirdness
martinisoft@r2d2 chef-rvm [master] % brew {1}
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency_resolver.rb:490:in `resolve_for': unable to find any gem matching dependency 'foodcritic (~> 3.0.3)' (Gem::UnsatisfiableDepedencyError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency_resolver.rb:286:in `resolve'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/request_set.rb:39:in `resolve'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/request_set.rb:47:in `resolve_current'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb:244:in `detect_gemdeps'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb:1109:in `<top (required)>'
from <internal:gem_prelude>:1:in `require'
from <internal:gem_prelude>:1:in `<compiled>'
martinisoft@r2d2 chef-rvm [master] % rake
rake aborted!
Kitchen::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT:
STDERR: /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_resolver.rb:490:in `resolve_for': unable to find any gem matching dependency 'foodcritic (~> 3.0.3)' (Gem::UnsatisfiableDepedencyError)
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_resolver.rb:286:in `resolve'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/request_set.rb:39:in `resolve'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/request_set.rb:47:in `resolve_current'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems.rb:244:in `detect_gemdeps'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems.rb:1109:in `<top (required)>'
from <internal:gem_prelude>:1:in `require'
from <internal:gem_prelude>:1:in `<compiled>'
---- End output of vagrant --version ----
Ran vagrant --version returned 1
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/shell_out.rb:70:in `rescue in run_command'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/shell_out.rb:59:in `run_command'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/driver/base.rb:158:in `run_command'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:127:in `silently_run'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:219:in `vagrant_version'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:227:in `check_vagrant_version'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:100:in `verify_dependencies'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/driver.rb:45:in `for_plugin'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:124:in `new_driver'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:130:in `new_instance'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:73:in `block in build_instances'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:72:in `map'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:72:in `with_index'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:72:in `build_instances'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:52:in `instances'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/rake_tasks.rb:46:in `block in define'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/rake_tasks.rb:45:in `define'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/rake_tasks.rb:37:in `initialize'
/Users/martinisoft/projects/chef-rvm/Rakefile:12:in `new'
/Users/martinisoft/projects/chef-rvm/Rakefile:12:in `<top (required)>'
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT:
STDERR: /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_resolver.rb:490:in `resolve_for': unable to find any gem matching dependency 'foodcritic (~> 3.0.3)' (Gem::UnsatisfiableDepedencyError)
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_resolver.rb:286:in `resolve'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/request_set.rb:39:in `resolve'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/request_set.rb:47:in `resolve_current'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems.rb:244:in `detect_gemdeps'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems.rb:1109:in `<top (required)>'
from <internal:gem_prelude>:1:in `require'
from <internal:gem_prelude>:1:in `<compiled>'
---- End output of vagrant --version ----
Ran vagrant --version returned 1
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/mixlib-shellout-1.4.0/lib/mixlib/shellout.rb:257:in `invalid!'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/mixlib-shellout-1.4.0/lib/mixlib/shellout.rb:244:in `error!'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/shell_out.rb:67:in `run_command'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/driver/base.rb:158:in `run_command'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:127:in `silently_run'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:219:in `vagrant_version'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:227:in `check_vagrant_version'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:100:in `verify_dependencies'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/driver.rb:45:in `for_plugin'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:124:in `new_driver'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:130:in `new_instance'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:73:in `block in build_instances'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:72:in `map'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:72:in `with_index'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:72:in `build_instances'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/config.rb:52:in `instances'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/rake_tasks.rb:46:in `block in define'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/rake_tasks.rb:45:in `define'
/Users/martinisoft/.rvm/gems/ruby-2.1.2/gems/test-kitchen-1.2.1/lib/kitchen/rake_tasks.rb:37:in `initialize'
/Users/martinisoft/projects/chef-rvm/Rakefile:12:in `new'
/Users/martinisoft/projects/chef-rvm/Rakefile:12:in `<top (required)>'
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment