我可以让Bundler T使用较早的宝石吗?
-
25-09-2019 - |
题
我试图让我的Rails3 App&Gem Taps&Heroku一起玩得很好。一个谷歌搜索的解决方案是使用续集的早期版本。因此,我想尝试让Bundler使用续集v3.13.0而不是续集v3.15.0,但邦德勒说:
You have requested:
sequel = 3.13.0
The bundle currently has sequel locked at 3.15.0.
Try running `bundle update sequel`
这可能是依赖性,这是阻止这种情况的 - 我如何找出答案?我可以其他方式做吗?谢谢...
解决方案
在你的gemfile中,放 gem "sequel", "3.13.0"
然后运行 bundle install --relock
要了解有关Bundler的更多信息: http://asciicasts.com/episodes/201-bundler
其他提示
只是为了添加其他答案,您也可以 版本字符串 在Gemfile中。因此,您可以将这样的件放在Gemfile中 gem "sequel", "> 3.13.0"
或者 gem "sequel"
. 。您可能会发现将来的某个时候有用!
不隶属于 StackOverflow