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)
但如果我使用 just 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/...
and Resolving dependencies...
,那么它们有什么不同呢?
我一直使用 just bundle
,但尝试bundle update
并注意到了差异。