作者:秦延深_791 | 来源:互联网 | 2023-05-19 18:50
Iftherearetwogems,AandB.A1.0.0dependsonB1.0.0.如果有两个宝石,A和B.A1.0.0取决于B1.0.0。InmyGemfi
If there are two gems, A
and B
. A1.0.0
depends on B1.0.0
.
如果有两个宝石,A和B. A1.0.0取决于B1.0.0。
In my Gemfile:
在我的Gemfile中:
gem 'A', '~> 1.0.0'
Then run bundle
. It will generate a Gemfile.lock like:
然后运行bundle。它将生成一个Gemfile.lock,如:
A (1.0.0)
B (1.0.0)
But if I want to force A
to use B1.0.1
, what's the best practice? Moreover, if the B1.0.1
is not release but a github tag?
但如果我想强制A使用B1.0.1,那么最佳做法是什么?此外,如果B1.0.1不是发布而是github标签?
1 个解决方案