Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 如何解决mixlib shellout gem版本冲突?_Ruby_Rubygems_Chef Infra_Berkshelf_Test Kitchen - Fatal编程技术网

Ruby 如何解决mixlib shellout gem版本冲突?

Ruby 如何解决mixlib shellout gem版本冲突?,ruby,rubygems,chef-infra,berkshelf,test-kitchen,Ruby,Rubygems,Chef Infra,Berkshelf,Test Kitchen,我正在尝试使用厨房/厨师来部署。事实上,我不确定我是否接触过厨房 我的理解是gem list列出了存储库中的所有gem,项目从该存储库中获取它想要的任何gem 在我运行gem install bundler和gem install berkshellf之后,我有一个mixlib外壳(2.2.6),由gem list | grep shellout显示 然后我运行了bundle安装,并根据我的GEM文件安装了“mixlib shellout(1.6.1)”。然后我有了“mixlib shellou

我正在尝试使用厨房/厨师来部署。事实上,我不确定我是否接触过厨房

我的理解是
gem list
列出了存储库中的所有gem,项目从该存储库中获取它想要的任何gem

在我运行
gem install bundler
gem install berkshellf
之后,我有一个mixlib外壳(2.2.6),由
gem list | grep shellout
显示

然后我运行了
bundle安装
,并根据我的GEM文件安装了“mixlib shellout(1.6.1)”。然后我有了“mixlib shellout(2.2.6,1.6.1)”,由
gem list | grep shellout
显示

从Gemfile.lock来看,我相信1.6.1是我们想要的版本。然后我运行了
berks install
,抛出了一个异常,它是:

Unable to activate chef-11.18.12, because mixlib-shellout-2.2.6 conflicts with mixlib-shellout (~> 1.4) - 11.18.12 -  (Gem::LoadError)
我不明白为什么它试图获取2.2.6而不是1.6.1

我的档案

source 'https://rubygems.org'

group :development do
  gem 'berkshelf', '~> 4.0'
  gem 'berkshelf-api-client', '~> 2.0'

  gem 'thor'

  gem 'chef', '~> 11.16'
  gem 'test-kitchen', '~> 1.2'
  gem 'kitchen-vagrant', '>= 0.16'
  gem 'serverspec'
  gem 'infrataster'
  gem 'busser'
  gem 'busser-serverspec'

  gem 'chefspec', '~>4'

  gem 'rubocop'
  gem 'foodcritic'
end

gem 'chef-vault', '~> 2.2'
Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    addressable (2.3.8)
    ast (2.2.0)
    berkshelf (4.1.0)
      addressable (~> 2.3.4)
      berkshelf-api-client (~> 2.0)
      buff-config (~> 1.0)
      buff-extensions (~> 1.0)
      buff-shell_out (~> 0.1)
      celluloid (= 0.16.0)
      celluloid-io (~> 0.16.1)
      cleanroom (~> 1.0)
      faraday (~> 0.9.0)
      httpclient (~> 2.6.0)
      minitar (~> 0.5.4)
      octokit (~> 4.0)
      retryable (~> 2.0)
      ridley (~> 4.3)
      solve (~> 2.0)
      thor (~> 0.19)
    berkshelf-api-client (2.0.0)
      faraday (~> 0.9.1)
      httpclient (~> 2.6.0)
    buff-config (1.0.1)
      buff-extensions (~> 1.0)
      varia_model (~> 0.4)
    buff-extensions (1.0.0)
    buff-ignore (1.1.1)
    buff-ruby_engine (0.1.0)
    buff-shell_out (0.2.0)
      buff-ruby_engine (~> 0.1.0)
    busser (0.7.1)
      thor (<= 0.19.0)
    busser-serverspec (0.5.9)
      busser
    capybara (2.6.2)
      addressable
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    celluloid (0.16.0)
      timers (~> 4.0.0)
    celluloid-io (0.16.2)
      celluloid (>= 0.16.0)
      nio4r (>= 1.1.0)
    chef (11.18.12)
      chef-zero (~> 2.2, >= 2.2.1)
      diff-lcs (~> 1.2, >= 1.2.4)
      erubis (~> 2.7)
      ffi-yajl (~> 1.2)
      highline (~> 1.6, >= 1.6.9)
      mime-types (~> 1.16)
      mixlib-authentication (~> 1.3)
      mixlib-cli (~> 1.4)
      mixlib-config (~> 2.0)
      mixlib-log (~> 1.3)
      mixlib-shellout (~> 1.4)
      net-ssh (~> 2.6)
      net-ssh-multi (~> 1.1)
      ohai (~> 7.4)
      plist (~> 3.1.0)
      pry (~> 0.9)
      rest-client (>= 1.0.4, <= 1.6.7)
    chef-vault (2.7.1)
    chef-zero (2.2.1)
      ffi-yajl (~> 1.1)
      hashie (~> 2.0)
      mixlib-log (~> 1.3)
      rack
    chefspec (4.5.0)
      chef (>= 11.14)
      fauxhai (~> 3.0, >= 3.0.1)
      rspec (~> 3.0)
    cleanroom (1.0.0)
    cliver (0.3.2)
    coderay (1.1.0)
    diff-lcs (1.2.5)
    erubis (2.7.0)
    faraday (0.9.2)
      multipart-post (>= 1.2, < 3)
    faraday_middleware (0.10.0)
      faraday (>= 0.7.4, < 0.10)
    fauxhai (3.1.0)
      net-ssh
    ffi (1.9.10)
    ffi-yajl (1.4.0)
      ffi (~> 1.5)
      libyajl2 (~> 1.2)
    foodcritic (6.0.0)
      erubis
      gherkin (~> 2.11)
      nokogiri (>= 1.5, < 2.0)
      rake
      rufus-lru (~> 1.0)
      treetop (~> 1.4)
      yajl-ruby (~> 1.1)
    gherkin (2.12.2)
      multi_json (~> 1.3)
    hashie (2.1.2)
    highline (1.7.8)
    hitimes (1.2.3)
    httpclient (2.6.0.1)
    infrataster (0.3.2)
      capybara
      faraday
      faraday_middleware (>= 0.10.0)
      net-ssh
      net-ssh-gateway
      poltergeist
      rspec (>= 2.0, < 4.0)
      thor
    ipaddress (0.8.2)
    json (1.8.3)
    kitchen-vagrant (0.19.0)
      test-kitchen (~> 1.4)
    libyajl2 (1.2.0)
    method_source (0.8.2)
    mime-types (1.25.1)
    mini_portile2 (2.0.0)
    minitar (0.5.4)
    mixlib-authentication (1.4.0)
      mixlib-log
      rspec-core (~> 3.2)
      rspec-expectations (~> 3.2)
      rspec-mocks (~> 3.2)
    mixlib-cli (1.5.0)
    mixlib-config (2.2.1)
    mixlib-log (1.6.0)
    mixlib-shellout (1.6.1)
    molinillo (0.2.3)
    multi_json (1.11.2)
    multipart-post (2.0.0)
    net-scp (1.2.1)
      net-ssh (>= 2.6.5)
    net-ssh (2.9.4)
    net-ssh-gateway (1.2.0)
      net-ssh (>= 2.6.5)
    net-ssh-multi (1.2.1)
      net-ssh (>= 2.6.5)
      net-ssh-gateway (>= 1.2.0)
    net-telnet (0.1.1)
    nio4r (1.2.1)
    nokogiri (1.6.7.2)
      mini_portile2 (~> 2.0.0.rc2)
    octokit (4.2.0)
      sawyer (~> 0.6.0, >= 0.5.3)
    ohai (7.4.1)
      ffi (~> 1.9)
      ffi-yajl (~> 1.1)
      ipaddress
      mime-types (~> 1.16)
      mixlib-cli
      mixlib-config (~> 2.0)
      mixlib-log
      mixlib-shellout (~> 1.2)
      systemu (~> 2.6.4)
      wmi-lite (~> 1.0)
    parser (2.3.0.3)
      ast (~> 2.2)
    plist (3.1.0)
    poltergeist (1.9.0)
      capybara (~> 2.1)
      cliver (~> 0.3.1)
      multi_json (~> 1.0)
      websocket-driver (>= 0.2.0)
    polyglot (0.3.5)
    powerpack (0.1.1)
    pry (0.10.3)
      coderay (~> 1.1.0)
      method_source (~> 0.8.1)
      slop (~> 3.4)
    rack (1.6.4)
    rack-test (0.6.3)
      rack (>= 1.0)
    rainbow (2.1.0)
    rake (10.5.0)
    rest-client (1.6.7)
      mime-types (>= 1.16)
    retryable (2.0.3)
    ridley (4.4.1)
      addressable
      buff-config (~> 1.0)
      buff-extensions (~> 1.0)
      buff-ignore (~> 1.1)
      buff-shell_out (~> 0.1)
      celluloid (~> 0.16.0)
      celluloid-io (~> 0.16.1)
      erubis
      faraday (~> 0.9.0)
      hashie (>= 2.0.2, < 4.0.0)
      httpclient (~> 2.6)
      json (>= 1.7.7)
      mixlib-authentication (>= 1.3.0)
      retryable (~> 2.0)
      semverse (~> 1.1)
      varia_model (~> 0.4.0)
    rspec (3.4.0)
      rspec-core (~> 3.4.0)
      rspec-expectations (~> 3.4.0)
      rspec-mocks (~> 3.4.0)
    rspec-core (3.4.2)
      rspec-support (~> 3.4.0)
    rspec-expectations (3.4.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.4.0)
    rspec-its (1.2.0)
      rspec-core (>= 3.0.0)
      rspec-expectations (>= 3.0.0)
    rspec-mocks (3.4.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.4.0)
    rspec-support (3.4.1)
    rubocop (0.37.0)
      parser (>= 2.3.0.2, < 3.0)
      powerpack (~> 0.1)
      rainbow (>= 1.99.1, < 3.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (~> 0.3)
    ruby-progressbar (1.7.5)
    rufus-lru (1.0.5)
    safe_yaml (1.0.4)
    sawyer (0.6.0)
      addressable (~> 2.3.5)
      faraday (~> 0.8, < 0.10)
    semverse (1.2.1)
    serverspec (2.29.1)
      multi_json
      rspec (~> 3.0)
      rspec-its
      specinfra (~> 2.48)
    sfl (2.2)
    slop (3.6.0)
    solve (2.0.2)
      molinillo (~> 0.2.3)
      semverse (~> 1.1)
    specinfra (2.50.4)
      net-scp
      net-ssh (>= 2.7, < 3.1)
      net-telnet
      sfl
    systemu (2.6.5)
    test-kitchen (1.4.2)
      mixlib-shellout (>= 1.2, < 3.0)
      net-scp (~> 1.1)
      net-ssh (~> 2.7, < 2.10)
      safe_yaml (~> 1.0)
      thor (~> 0.18)
    thor (0.19.0)
    timers (4.0.4)
      hitimes
    treetop (1.6.3)
      polyglot (~> 0.3)
    unicode-display_width (0.3.1)
    varia_model (0.4.1)
      buff-extensions (~> 1.0)
      hashie (>= 2.0.2, < 4.0.0)
    websocket-driver (0.6.3)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.2)
    wmi-lite (1.0.0)
    xpath (2.0.0)
      nokogiri (~> 1.3)
    yajl-ruby (1.2.1)

PLATFORMS
  ruby

DEPENDENCIES
  berkshelf (~> 4.0)
  berkshelf-api-client (~> 2.0)
  busser
  busser-serverspec
  chef (~> 11.16)
  chef-vault (~> 2.2)
  chefspec (~> 4)
  foodcritic
  infrataster
  kitchen-vagrant (>= 0.16)
  rubocop
  serverspec
  test-kitchen (~> 1.2)
  thor

BUNDLED WITH
   1.11.2
GEM
远程:https://rubygems.org/
规格:
可寻址(2.3.8)
ast(2.2.0)
伯克希尔书架(4.1.0)
可寻址(~>2.3.4)
Berkshell api客户端(~>2.0)
buff配置(~>1.0)
buff扩展(~>1.0)
buff-shell\U out(~>0.1)
赛璐珞(=0.16.0)
赛璐珞io(~>0.16.1)
洁净室(~>1.0)
法拉第(~>0.9.0)
httpclient(~>2.6.0)
迷你焦油(~>0.5.4)
octokit(~>4.0)
可回收(~>2.0)
里德利(~>4.3)
求解(~>2.0)
雷神(~>0.19)
Berkshell api客户端(2.0.0)
法拉第(~>0.9.1)
httpclient(~>2.6.0)
buff配置(1.0.1)
buff扩展(~>1.0)
变量模型(~>0.4)
buff扩展(1.0.0)
增益忽略(1.1.1)
buff-ruby_引擎(0.1.0)
buff-shell_out(0.2.0)
buff-ruby_引擎(~>0.1.0)
巴斯尔(0.7.1)
索尔(=1.16)
nokogiri(>=1.3.3)
机架(>=1.0.0)
机架测试(>=0.5.4)
xpath(~>2.0)
赛璐珞(0.16.0)
计时器(~>4.0.0)
赛璐珞io(0.16.2)
赛璐珞(>=0.16.0)
nio4r(>=1.1.0)
厨师长(11.18.12)
零厨师长(~>2.2,>=2.2.1)
差异lcs(~>1.2,>=1.2.4)
erubis(~>2.7)
外国金融机构账户(~>1.2)
高线(~>1.6,>=1.6.9)
mime类型(~>1.16)
mixlib身份验证(~>1.3)
mixlib cli(~>1.4)
mixlib配置(~>2.0)
mixlib日志(~>1.3)
mixlib shellout(~>1.4)
net ssh(~>2.6)
net ssh multi(~>1.1)
ohai(~>7.4)
plist(~>3.1.0)
撬动(~>0.9)
rest客户端(>=1.0.4,1.1)
hashie(~>2.0)
mixlib日志(~>1.3)
支架
chefspec(4.5.0)
厨师长(>=11.14)
福海(~>3.0,>=3.0.1)
rspec(~>3.0)
洁净室(1.0.0)
cliver(0.3.2)
coderay(1.1.0)
差异lcs(1.2.5)
erubis(2.7.0)
法拉第(0.9.2)
多部分post(>=1.2,<3)
法拉第中间件(0.10.0)
法拉第(>=0.7.4,<0.10)
福海(3.1.0)
net-ssh
外国金融机构(1.9.10)
ffi yajl(1.4.0)
外国金融机构(~>1.5)
libyajl2(~>1.2)
foodcritic(6.0.0)
埃鲁比斯
小黄瓜(~>2.11)
nokogiri(>=1.5,<2.0)
耙
鲁弗斯lru(~>1.0)
树梢(~>1.4)
yajl红宝石(~>1.1)
小黄瓜(2.12.2)
多重json(~>1.3)
哈西(2.1.2)
高端(1.7.8)
hitimes(1.2.3)
httpclient(2.6.0.1)
Infrastater(0.3.2)
水豚
法拉第
法拉第中间件(>=0.10.0)
net-ssh
net ssh网关
闹鬼
rspec(>=2.0,<4.0)
雷神
IP地址(0.8.2)
json(1.8.3)
厨房流浪汉(0.19.0)
测试厨房(~>1.4)
libyajl2(1.2.0)
方法_来源(0.8.2)
mime类型(1.25.1)
迷你端口2(2.0.0)
minitar(0.5.4)
mixlib身份验证(1.4.0)
混合库日志
rspec堆芯(~>3.2)
rspec期望值(~>3.2)
rspec模拟(~>3.2)
mixlib cli(1.5.0)
mixlib配置(2.2.1)
mixlib日志(1.6.0)
mixlib shellout(1.6.1)
莫利尼略(0.2.3)
多线程json(1.11.2)
多部分post(2.0.0)
净scp(1.2.1)
net ssh(>=2.6.5)
net ssh(2.9.4)
net ssh网关(1.2.0)
net ssh(>=2.6.5)
net ssh multi(1.2.1)
net ssh(>=2.6.5)
net ssh网关(>=1.2.0)
net telnet(0.1.1)
nio4r(1.2.1)
nokogiri(1.6.7.2)
迷你端口2(~>2.0.0.rc2)
奥克托套件(4.2.0)
锯木匠(~>0.6.0,>=0.5.3)
ohai(7.4.1)
外国金融机构(~>1.9)
外国金融机构账户(~>1.1)
IP地址
mime类型(~>1.16)
mixlib客户端
mixlib配置(~>2.0)
混合库日志
mixlib shellout(~>1.2)
systemu(~>2.6.4)
wmi lite(~>1.0)
解析器(2.3.0.3)
ast(~>2.2)
plist(3.1.0)
恶鬼(1.9.0)
水豚(~>2.1)
cliver(~>0.3.1)
多重json(~>1.0)
websocket驱动程序(>=0.2.0)
polyglot(0.3.5)
电源组(0.1.1)
撬动(0.10.3)
coderay(~>1.1.0)
方法\u来源(~>0.8.1)
坡度(~>3.4)
机架(1.6.4)
机架测试(0.6.3)
机架(>=1.0)
彩虹(2.1.0)
耙(10.5.0)
rest客户端(1.6.7)
mime类型(>=1.16)
可检索(2.0.3)
雷德利(4.4.1)
可寻址
buff配置(~>1.0)
buff扩展(~>1.0)
buff忽略(~>1.1)
buff-shell\U out(~>0.1)
赛璐珞(~>0.16.0)
赛璐珞io(~>0.16.1)
埃鲁比斯
法拉第(~>0.9.0)
哈希(>=2.0.2,<4.0.0)
httpclient(~>2.6)
json(>=1.7.7)
mixlib身份验证(>=1.3.0)
可回收(~>2.0)
semverse(~>1.1)
变量模型(~>0.4.0)
rspec(3.4.0)
rspec核心(~>3.4.0)
rspec期望值(~>3.4.0)
rspec模拟(~>3.4.0)
rspec核心(3.4.2)
rspec支持(~>3.4.0)
rspec期望值(3.4.0)
差异lcs(>=1.2.0,<2.0)
rspec支持(~>3.4.0)
rspec its(1.2.0)
rspec核心(>=3.0.0)
rspec期望值(>=3.0.0)
rspec模拟(3.4.1)
差异lcs(>=1.2.0,<2.0)
rspec-s