Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Last active December 14, 2015 00:29
Show Gist options
  • Save jtimberman/4999361 to your computer and use it in GitHub Desktop.
Save jtimberman/4999361 to your computer and use it in GitHub Desktop.
source "http://rubygems.org"
gem 'berkshelf'
group :integration do
gem 'test-kitchen', :git => 'git://github.com/opscode/test-kitchen.git', :branch => '1.0'
gem 'kitchen-ec2', :git => 'git://github.com/opscode/kitchen-ec2.git'
gem 'kitchen-vagrant', :git => 'git://github.com/opscode/kitchen-vagrant.git'
end
@trobrock
Copy link

does test-kitchen not work with chef 11.4 yet?

Updating git://github.com/opscode/test-kitchen.git
Fetching git://github.com/opscode/kitchen-ec2.git
remote: Counting objects: 109, done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 109 (delta 38), reused 109 (delta 38)
Receiving objects: 100% (109/109), 11.75 KiB, done.
Resolving deltas: 100% (38/38), done.
Updating git://github.com/opscode/kitchen-vagrant.git
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Bundler could not find compatible versions for gem "json":
  In Gemfile:
    kitchen-vagrant (>= 0) ruby depends on
      json (~> 1.5.1) ruby

    chef (~> 11.4.0) ruby depends on
      json (1.7.7)

@chrisolido
Copy link

Im had the same error.

bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "test-kitchen":
In Gemfile:
kitchen-vagrant (>= 0) ruby depends on
test-kitchen (~> 1.0.0.alpha.0) ruby

test-kitchen (0.5.0)

$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.0.0]
$ rbenv versions
system

  • 1.9.3-p392 (set by /Users/chrisolido/.rbenv/version)

During bundle install.

The code on the top solve this problem.

Thanks for this info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment