fetch --nohooks webrtc 失败
$ fetch --nohooks webrtc
Syncing projects: 100% ( 1/ 1) src
src (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Traceback (most recent call last):
File "E:\code\depot_tools\metrics.py", line 302, in print_notice_and_exit
yield
File "E:\code\depot_tools\gclient.py", line 4638, in <module>
sys.exit(main(sys.argv[1:]))
^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\gclient.py", line 4624, in main
return dispatcher.execute(OptionParser(), argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\subcommand.py", line 254, in execute
return command(parser, args[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\gclient.py", line 3977, in CMDsync
ret = client.RunOnDeps('update', args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\gclient.py", line 2436, in RunOnDeps
work_queue.flush(revision_overrides,
File "E:\code\depot_tools\gclient_utils.py", line 1026, in flush
reraise(e[0], e[1], e[2])
File "E:\code\depot_tools\gclient_utils.py", line 53, in reraise
raise value
File "E:\code\depot_tools\gclient_utils.py", line 1105, in run
self.item.run(*self.args, **self.kwargs)
File "E:\code\depot_tools\gclient.py", line 1251, in run
self._got_revision = self._used_scm.RunCommand(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\gclient_scm.py", line 137, in RunCommand
return getattr(self, command)(options, args, file_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\gclient_scm.py", line 664, in wrapper
return_val = f(*args)
^^^^^^^^
File "E:\code\depot_tools\gclient_scm.py", line 773, in update
mirror = self._GetMirror(url, options, revision, revision_ref)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\gclient_scm.py", line 1286, in _GetMirror
if not self.cache_dir:
^^^^^^^^^^^^^^
File "E:\code\depot_tools\gclient_scm.py", line 220, in cache_dir
return git_cache.Mirror.GetCachePath()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\code\depot_tools\git_cache.py", line 206, in GetCachePath
cachepath = subprocess.check_output(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\57366\AppData\Local\.vpython-root\store\cpython+77vkdc5f3t4dm3hikhtc9e5djk\contents\bin\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\57366\AppData\Local\.vpython-root\store\cpython+77vkdc5f3t4dm3hikhtc9e5djk\contents\bin\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\57366\AppData\Local\.vpython-root\store\cpython+77vkdc5f3t4dm3hikhtc9e5djk\contents\bin\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\57366\AppData\Local\.vpython-root\store\cpython+77vkdc5f3t4dm3hikhtc9e5djk\contents\bin\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
Running: 'C:\Users\57366\AppData\Local\.vpython-root\store\python_venv-aj0kqe7e7tom4augpqeimb2nb8\contents\Scripts\python3.exe' 'E:\code\depot_tools\gclient.py' root
Running: 'C:\Users\57366\AppData\Local\.vpython-root\store\python_venv-aj0kqe7e7tom4augpqeimb2nb8\contents\Scripts\python3.exe' 'E:\code\depot_tools\gclient.py' config --spec 'solutions = [
{
"name": "src",
"url": "https://webrtc.googlesource.com/src.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {},
},
]
'
Running: 'C:\Users\57366\AppData\Local\.vpython-root\store\python_venv-aj0kqe7e7tom4augpqeimb2nb8\contents\Scripts\python3.exe' 'E:\code\depot_tools\gclient.py' sync --nohooks --with_branch_heads
Subprocess failed with return code 1.
解决办法:
申请一台国外服务器
配置 depot_tools
使用 CMD 窗口,不要用 git bash
评论