admin管理员组文章数量:1401849
I'm currently trying to better understand dependency management in the Ruby ecosystem.
I understand what gems are and why we need a Gemfile.lock
.
In the Gemfile.lock
there is an entry that holds the bundler version that the gems are bundled with.
BUNDLED WITH
<version>
I would like to better understand why the bundler version is relevant. The Gemfile.lock already contains the versions of all gems that are relevant for my application. What role does the version of the bundler still play?
What could potentially go wrong if two developers work on a project with different Bundler versions? Can someone give me a concrete example?
I have already read the bundler documentation, but could not come to any conclusions.
I'm currently trying to better understand dependency management in the Ruby ecosystem.
I understand what gems are and why we need a Gemfile.lock
.
In the Gemfile.lock
there is an entry that holds the bundler version that the gems are bundled with.
BUNDLED WITH
<version>
I would like to better understand why the bundler version is relevant. The Gemfile.lock already contains the versions of all gems that are relevant for my application. What role does the version of the bundler still play?
What could potentially go wrong if two developers work on a project with different Bundler versions? Can someone give me a concrete example?
I have already read the bundler documentation, but could not come to any conclusions.
Share Improve this question asked Mar 22 at 10:44 dsifydsify 131 bronze badge 1- See bundler.io/blog/2022/01/23/bundler-v2-3.html especially the Why are we doing this? section. – Stefan Commented Mar 22 at 11:49
1 Answer
Reset to default 0Bundler is also a gem, so it'll also can have potentially breaking changes in it's functionality.
Different Bundler versions may resolve dependencies differently, leading to conflicting gem versions. For example: Bundler v1.0.0 can resolve some version of gem to 2.1.1 while newest version of Bundler can have improved alghorithm and it'll resolve it to 2.1.8 if possible or even newer and it can do it faster.
If the project is bundled with old version, newer versions of Bundle potentialy can introduce newer syntax for
Gemfile.lock
.Some versions introduce new settings or default behaviors, affecting how gems are installed.
本文标签: ruby on railsWhat could go wrong without the quotbundled withquot lineStack Overflow
版权声明:本文标题:ruby on rails - What could go wrong without the "bundled with" line? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744318214a2600368.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论