How to see the dependency tree just from Gemfile?

后端 未结 2 1221
遇见更好的自我
遇见更好的自我 2020-12-23 19:56

I am getting the following error when doing bundle install

Make sure that `gem install couchbase -v \'1.3.3\'` succeeds before bundling.
         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 20:20

    gem dependency (with no args) should show you all gems from current Gemfile with their dependencies.

    Edit:

    You can also do gem dependency -R (or just dep insted of dependency) if you want to find out which gems use specific (or all) gems.

    For deeper dependencies I'd parse output (regex maybe?) of first gem dependencies, pick gem's names and call gem dep on each of them, but that's just a loose idea.

提交回复
热议问题