英文:
How to clone/ropo sync code from specific buildID
问题
我正在尝试克隆AOSP源代码,构建ID是"9407610"。
我现在只有构建ID。是否可以从构建ID克隆源代码或进行repo同步?
我看到一些博客说可以通过标签和构建ID同步代码。但我不知道这个构建的标签名是什么。
我尝试了以下步骤:
步骤1:
repo init -u https://android.googlesource.com/platform/manifest
步骤2:从此链接下载了manifest_9407610.xml文件,然后将其内容替换到.repo/manifests/default.xml中。
步骤3:
repo sync -c -j8
几个小时后,我收到以下错误消息:
> error: unable to read sha1 file of kernel-5.4-lz4
> (0833eee0dbc0dc81a8a410c34760a15617b142a3)
>
> error: unable to read sha1 file of kernel-5.4-lz4-allsyms
> (f7b760b37e01fec4ba1a976c32d3e533b96cfc2e)
>
> error: unable to read sha1 file of prebuilt-info.txt
> (9421e754bf0ca222620a4643f02481a6d32cc761)
我只是尝试了这种方法,但无法同步完整的代码库。
你能否建议一下克隆和repo同步代码的正确方法?
英文:
I am trying to clone the AOSP source code and the build ID is "9407610".
I now only build ID. Is it possible to clone the source or repo sync from the build ID?
I have seen some blogs, that are saying sync code from through tag and build ID. But I don't know the tag name of this build.
I tried like below:
Step 1:
repo init -u https://android.googlesource.com/platform/manifest
Step 2: Downloaded manifest_9407610.xml file from this link & replace content from manifest_9407610.xml to .repo/manifests/default.xml.
Step 3:
repo sync -c -j8
After a few hours I got below error:
> error: unable to read sha1 file of kernel-5.4-lz4
> (0833eee0dbc0dc81a8a410c34760a15617b142a3)
>
> error: unable to read sha1 file of kernel-5.4-lz4-allsyms
> (f7b760b37e01fec4ba1a976c32d3e533b96cfc2e)
>
> error: unable to read sha1 file of prebuilt-info.txt
> (9421e754bf0ca222620a4643f02481a6d32cc761)
I just tried this way, but it is not able to sync the complete code base.
Could you please suggest to me which is the proper way to clone and repo sync the code?
答案1
得分: 0
以下是已翻译的内容:
尝试以下步骤:
cp your_local_mainifest.xml .repo/manifests
repo init -m your_local_manifest.xml
repo sync
参考链接:https://stackoverflow.com/questions/5672394/using-a-local-manifest-xml-with-repo
英文:
Tried below steps :
cp your_local_mainifest.xml .repo/manifests
repo init -m your_local_manifest.xml
repo sync
Ref link : https://stackoverflow.com/questions/5672394/using-a-local-manifest-xml-with-repo
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论