Bundler: `bundle package` with a :git source

╄→гoц情女王★ 提交于 2019-12-09 05:23:14

问题


I'm trying to get my app to package my gems before deployment (to heroku) One of my gems in my Gemfile is a custom gem that I've written and I'm using the :git option of bundler to use the specific tag of my interest as such:

gem "my_gem", :git => "git@github.com:my_username/my_gem.git", :tag => "v0.1.0"

When I run bundle package however, this gem is not included into my vendor/cache directory. Is this a known issue, namely, that Bundler does not package gems that use the git source rather than a packaged .gem file?

I haven't found anything in the docs that says either way, but I was really hoping using this :git option would save me the hassle of having to actually build the gem and host it somewhere. (All this code is NOT open source or public in any way so I don't want to push it to gemcutter)

Also note that I need to package my gems first as heroku won't have access to the git source on deployment due to public key issues.


回答1:


This is now possible, using bundler 1.2, with:

bundle package --all



回答2:


Turns out this is not yet supported, scheduled for v1.1



来源:https://stackoverflow.com/questions/3547502/bundler-bundle-package-with-a-git-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!