我在构建服务器上设置rails构建时遇到问题。 运行bundle install时,gem march_hare的版本将解析为我们想要的版本(并成功使用),但bundle install命令仍然失败:
> bundle install
Fetching gem metadata from http://rubygems.org/
Fetching version metadata from http://rubygems.org/
Fetching dependency metadata from http://rubygems.org/
You have requested:
march_hare = 2.18.0
The bundle currently has march_hare locked at 2.18.0.
Try running `bundle update march_hare`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
我们正在使用Bundler版本1.12.5和gem版本(gem --version)2.1.9
当我们运行建议的命令“bundle update march_hare”时,我们再次得到同样的错误:
> bundle update march_hare
Fetching gem metadata from http://rubygems.org/
Fetching version metadata from http://rubygems.org/
Fetching dependency metadata from http://rubygems.org/
You have requested:
march_hare = 2.18.0
The bundle currently has march_hare locked at 2.18.0.
Try running `bundle update march_hare`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
有关我们如何确保在构建服务器上以正确版本安装所需gem的任何提示?