为什么从 github 获取的 gem 不存储在供应商/缓存中?

发布于 2025-01-03 18:35:46 字数 382 浏览 2 评论 0原文

从指定源(例如源'https://rubygems.org')获取的所有gem都存储在vendor/cache中,但从github获取的所有gem都存储在(例如gem“delocalize”,git:“< a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f1969885b1969885998493df929e9c">[电子邮件受保护]:Svensklanemarknad/delocalize.git")。

由于部署性能的原因,我想将所有 gem 包含在供应商/缓存中,这样我只能更新供应商/缓存中的特定 gem,以节省“捆绑包更新”的时间。

为什么从 github 获取的 gem 不存储在供应商/缓存中?

All gems that are fetched form the specified source (e.g. source 'https://rubygems.org') are stored in vendor/cache but none of the ones that are fetched from github are (e.g. gem "delocalize", git: "[email protected]:Svensklanemarknad/delocalize.git").

I'd like to include all gems in the vendor/cache because of deploy performance and so that I could only update a specific gem in the vendor/cache to save time on the 'bundle update '.

why aren't gems that are fetched from github stored in vendor/cache?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

罪歌 2025-01-10 18:35:46

尝试运行捆绑程序包

http://gembundler.com/bundle_package.html

有一个关于捆绑包无法与 git 源一起使用的开放问题,请在此处保持最新状态:https:// /github.com/carlhuda/bundler/issues/67。我读到有一些未合并的捆绑程序补丁可以解决这个问题。

Try running bundler package.

http://gembundler.com/bundle_package.html.

There is an open issue about bundle package not working with git sources, stay up to date here: https://github.com/carlhuda/bundler/issues/67. I read that there is some not merged patch for bundler which makes the trick.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文