gpt4 book ai didi

git - bundler : `bundle package` 带有 :git 源

转载 作者:IT王子 更新时间:2023-10-29 00:36:14 26 4
gpt4 key购买 nike

我试图让我的应用程序在部署之前打包我的 gem(到 heroku) 我的 Gemfile 中的一个 gem 是我编写的自定义 gem,我正在使用 bundle 程序的 :git 选项来使用我感兴趣的特定标签:

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

然而,当我运行 bundle package 时,这个 gem 没有包含在我的 vendor/cache 目录中。这是一个已知问题吗,即 Bundler 不打包使用 git 源而不是打包的 .gem 文件的 gem?

我没有在文档中找到任何说明这两种方式的内容,但我真的希望使用这个 :git 选项可以让我省去实际构建 gem 并将其托管在某个地方的麻烦。 (所有这些代码都不是开源的或以任何方式公开的,所以我不想将其推送到 gemcutter)

另请注意,我需要先打包我的 gem,因为由于公钥问题,heroku 在部署时无法访问 git 源。

最佳答案

现在可以使用 bundler 1.2,其中:

bundle package --all

关于git - bundler : `bundle package` 带有 :git 源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3547502/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com