Update just one gem with bundler

后端 未结 8 1074
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 07:05

I use bundler to manage dependencies in my rails app, and I have a gem hosted in a git repository included as followed:

gem \'gem-name\', :git => \'path/t         


        
相关标签:
8条回答
  • 2020-12-07 07:52

    I've used bundle update --source myself for a long time but there are scenarios where it doesn't work. Luckily, there's a gem called bundler-patch which has the goal of fixing this shortcoming.

    I also wrote a short blog post about how to use bundler-patch and why bundle update --source doesn't work consistently. Also, be sure to check out a post by chrismo that explains in great detail what the --source option does.

    0 讨论(0)
  • 2020-12-07 08:02

    The way to do this is to run the following command:

    bundle update --source gem-name
    
    0 讨论(0)
提交回复
热议问题