如何从特定的BuildID克隆/同步代码

huangapple go评论46阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年5月24日 18:32:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76322569.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定