简体   繁体   English

Android AOSP Repo Sync本地镜像

[英]Android AOSP Repo Sync Local Mirror

When you are working with AOSP repo you can create a local manifest folder and store your own manifest files for your own projects. 使用AOSP库时,可以创建本地清单文件夹,并为自己的项目存储自己的清单文件。 As our project grows though we continue to add more projects to our manifest. 随着项目的增长,尽管我们继续将更多项目添加到清单中。 We track this manifest file on git so we can all stay current. 我们在git上跟踪此清单文件,因此我们都可以保持最新状态。

The problem is that when you call repo sync you have to pull all the changes to your local manifest file first. 问题是,当您调用repo sync ,必须首先将所有更改拉到本地清单文件中。 If you don't you may miss out on required projects someone else has added. 如果您不这样做,则可能会错过其他人添加的必需项目。 Well, repo is capable of syncing it's own manifest file and does so automatically when you call repo sync . 好吧,repo能够同步它自己的清单文件,并在调用repo sync时自动repo sync Is there a way to have our own manifest file also get updated automatically at the same time before the actual sync occurs? 有没有办法让我们自己的清单文件也可以在实际同步发生之前的同一时间自动更新? I'd rather not use some extra script to do it, it would be really awesome if repo could handle this on it's own and I feel like it should be able to. 我宁愿不使用一些额外的脚本来执行此操作,如果repo可以自己处理它,那真的很棒,我觉得它应该能够。

This sounds like a reasonable request. 这听起来像是合理的要求。 You might want to post it to the repo-discuss mailing list to get some traction (or get an explanation why it's a bad idea). 您可能希望将其发布到repo-discuss邮件列表中以获得一定的吸引力(或获得解释说明为什么这是个坏主意)。

From my point of view, the point of local manifests is that they're... local. 在我看来,本地清单的重点是它们是...本地的。 If you want to persist changes and share between different users via Git, why not modify the original manifest file (typically default.xml)? 如果要保留更改并通过Git在不同用户之间共享,为什么不修改原始清单文件(通常为default.xml)? You've branched the manifest git anyway, and adding a separate section with your gits shouldn't cause much grief when merging. 无论如何,您已经分支了清单git,并且在合并时用git添加单独的部分不会引起太多麻烦。

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

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