我用两个命令bundle
和bundle update
捆绑和捆绑更新有什么区别?
时得到两个不同的结果,如果我使用bundle update
,我得到以下错误:
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
In Gemfile:
requirejs-rails (>= 0) ruby depends on
railties (~> 3.1.1) ruby
rails (= 4.0.0.rc2) ruby depends on
railties (4.0.0.rc2)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
requirejs-rails (>= 0) ruby depends on
rails (~> 3.1.1) ruby
rails (4.0.0.rc2)
但如果我只使用bundle
,我得到如下:
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (3.2.2)
In Gemfile:
rails (= 4.0.0.rc2) ruby depends on
activesupport (= 4.0.0.rc2) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
错误指向两个不同的相关问题,但这两个命令是fetching gem metadata from https://rubygems.org/...
和Resolving dependencies...
,他们有什么不同?
我一直只使用bundle
,但试过bundle update
,注意到不同之处。