Bundler:`bundle package`带有:git源码 [英] Bundler: `bundle package` with a :git source

查看:139
本文介绍了Bundler:`bundle package`带有:git源码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的应用程序在部署之前打包我的gem(对于heroku)我的Gemfile中的一个gem是我编写的自定义gem,我使用bundler的git选项来使用我感兴趣的具体标签是这样的:

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

当我运行 bundle package

我没有在文档中找到任何说明,但我真的希望使用这个:git选项可以节省我必须实际构建宝石并在某处寄主。 (所有这些代码都不是开源或公开的,所以我不想将它推送到gemcutter)

另外请注意,我需要 strong>首先打包我的宝石,因为heroku因公钥问题而无法访问部署中的git源代码。 >原来这是尚未支持,预定v1.1


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.

解决方案

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

这篇关于Bundler:`bundle package`带有:git源码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆