如何处理 AOSP 存储库同步上的curl clone.bundle 错误

2023-12-23

从 AOSP 下载 master 分支后,出现以下错误:

curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.

为什么会出现这个错误呢?

Log:

 * [new tag]         android-cts-4.4_r1 -> android-cts-4.4_r1
 * [new tag]         android-sdk-4.4.2_r1 -> android-sdk-4.4.2_r1
Fetching projects:   7% (32/448)  Fetching project platform/packages/apps/Launcher3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
 94 88.8M   94 83.9M    0     0   294k      0  0:05:08  0:04:51  0:00:17  357kremote:        Sending approximately 108.84 MiB ...
remote: Counting objects: 9, done
remote: Finding sources: 100% (9/9)
 94 88.8M   94 84.1M    0     0   294k      0  0:05:08  0:04:52  0:00:16  303kReceiving     objects:   0% (1/44323)   

Repo 尝试下载预打包的捆绑文件来引导每个 git,然后再通过 Git 的 HTTP 协议下载最新数据。后者在服务器端成本更高,并且性能更差,因此捆绑文件允许下载走捷径。如果捆绑文件不可用(如本例),Repo 将忽略它并继续进行。换句话说,不要关注这一点。

在较新版本的存储库中,可以使用--no-clone-bundle选项,例如:

repo sync --no-clone-bundle
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何处理 AOSP 存储库同步上的curl clone.bundle 错误 的相关文章

随机推荐