简体   繁体   English

为什么不是从存储在vendor / cache中的github获取的gem?

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

All gems that are fetched form the specified source (eg source 'https://rubygems.org') are stored in vendor/cache but none of the ones that are fetched from github are (eg gem "delocalize", git: "git@github.com:Svensklanemarknad/delocalize.git"). 从指定源获取的所有gem(例如source'https://rubygems.org')都存储在vendor / cache中,但是没有从github获取的那些(例如gem“delocalize”,git:“git @ github.com: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 '. 由于部署性能,我想在供应商/缓存中包含所有宝石,因此我只能更新供应商/缓存中的特定gem以节省“捆绑更新”的时间。

why aren't gems that are fetched from github stored in vendor/cache? 为什么不是从存储在vendor / cache中的github获取的gem?

Try running bundler package . 尝试运行bundler package

http://gembundler.com/bundle_package.html . 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 . 有一个关于捆绑软件包不能与git源一起使用的公开问题,请在这里保持最新: https//github.com/carlhuda/bundler/issues/67 I read that there is some not merged patch for bundler which makes the trick. 我读到有一些没有合并的补丁程序,它可以解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM