Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 RVM 的项目,它有 .ruby-gemset 和 .ruby-version 文件,但我也想设置 bundler vession。我尝试了 .ruby-bundler 但没有奏效。当进入这个设置gemset和ruby版本正确但没有正确安装de bundler版本的文件夹中时,效果是在我的项目中每台机器都有一个特定版本的bundler,并且每次提交都会更改Gemfile.lock,有一个强制每个人使用相同的捆绑程序版本的简单方法?
编辑项目中 Gemfile.lock 的最后两行:
BUNDLED WITH 2.2.0
更改2.2.0为您想要的版本。然后运行bundle install,bundler 应该会通知你 bundler 版本问题。bundler 将为您提供一些关于如何升级 bundler 的说明。
2.2.0
bundle install
您可以在 Gemfile 中设置 bundler 版本,bundler 将使用正确的版本。