提问人:jack 提问时间:11/5/2023 更新时间:11/5/2023 访问量:51
在 windows11 中同步 chromium 源代码时出现 Gclient 错误
Gclient error when sync chromium source code in windows11
问:
我在下面的链接中完成了所有步骤,
https://github.com/chromium/chromium/blob/main/docs/windows_build_instructions.md
我的电脑:
python 的版本是“Python 2.7.18”环境
在 cmd 代理中添加了 HTTP 和 HTTPS 代理,这是出于 Internet 原因添加的
错误文本:
F:\\src\>fetch --no-history chromium
Running: 'C:\\Users\\chenjia.vpython-root\\6f0bd1\\Scripts\\python.exe' 'F:\\tools\\depot_tools\\gclient.py' root
Running: 'C:\\Users\\chenjia.vpython-root\\6f0bd1\\Scripts\\python.exe' 'F:\\tools\\depot_tools\\gclient.py' config --spec 'solutions = \[
{
"name": "src",
"url": "https://chromium.googlesource.com/chromium/src.git",
"managed": False,
"custom_deps": {},
"custom_vars": {},
},
\]
'
Running: 'C:\\Users\\chenjia.vpython-root\\6f0bd1\\Scripts\\python.exe' 'F:\\tools\\depot_tools\\gclient.py' sync --no-history
Syncing projects: 100% ( 1/ 1) src
src (ERROR)
-
\[0:00:00\] Started.
\[0:00:46\]
\_______\_ running 'git init F:\\src\\src' in 'F:\\src'
\[0:00:46\] Initialized empty Git repository in F:/src/src/.git/
\[0:00:46\] hint: Using 'master' as the name for the initial branch. This default branch name
\[0:00:46\] hint: is subject to change. To configure the initial branch name to use in all
\[0:00:46\] hint: of your new repositories, which will suppress this warning, call:
\[0:00:46\] hint:
\[0:00:46\] hint: git config --global init.defaultBranch \<name\>
\[0:00:46\] hint:
\[0:00:46\] hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
\[0:00:46\] hint: 'development'. The just-created branch can be renamed via this command:
\[0:00:46\] hint:
\[0:00:46\] hint: git branch -m \<name\>
\[0:03:22\] From https://chromium.googlesource.com/chromium/src
\[0:03:22\] \* \[new branch\] main -\> origin/main
\[0:03:22\] Finished running: git rev-parse FETCH_HEAD
\[0:04:29\] Finished running: git checkout --quiet e65978e5fe7efcea360a085026e636bf7f0a3f3e
\[0:04:29\] Finished running: git rev-parse --abbrev-ref=strict HEAD
\[0:04:29\] Checked out e65978e5fe7efcea360a085026e636bf7f0a3f3e to a detached HEAD. Before making any commits
in this repo, you should use 'git checkout \<branch\>' to switch
to an existing branch or use 'git checkout origin -b \<branch\>' to
create a new branch for your work.
\[0:04:29\] Finished running: git -c core.quotePath=false ls-files
\[0:04:30\]
\[0:04:30\] Finished running: git rev-parse --verify HEAD
\[0:04:30\] Finished running: git rev-parse HEAD
-
Error: 1\> Wrong keys 'git_dependencies' in {'vars': {'build_with_chromium': True, 'checkout_configuration': 'default', 'checkout_android': False, 'checkout_fuchsia': False, 'checkout_fuchsia_internal': False, 'checkout_fuchsia_internal_images': '', 'checkout_fuchsia_no_hooks': False, 'checkout_android_prebuilts_build_tools': False,
..............
'src/third_party/depot_tools/gsutil.py', '-q', '-m', 'rsync', 'gs://aom-test-data', 'src/third_party/libaom/testdata'\]}\], 'recursedeps': \['src/third_party/angle', 'src/third_party/dawn', 'src/third_party/devtools-frontend-internal', 'src/third_party/openscreen/src', 'src/third_party/vulkan-deps', 'src/third_party/devtools-frontend/src', 'src/clank', 'src/chromeos/assistant/internal', 'src/components/optimization_guide/internal', 'src/ios_internal'\]}
Subprocess failed with return code 1.
我已经清理了整个下载的代码,并多次尝试“获取 chromium,gclient sync”。仍然不工作,同样的错误,哭......
答: 暂无答案
评论