設置curl代理


背景

接上一篇文章,這次是fetch --nohooks webrtc失敗了

fetch --nohooks webrtc
curl: (7) Failed to connect to chrome-infra-packages.appspot.com port 443: Connection timed out
/home/****/webrtc/depot_tools/bootstrap_python3: line 32: bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: No such file or directory
cat: /home/jinlun/webrtc/depot_tools/python3_bin_reldir.txt: No such file or directory
/home/****/webrtc/depot_tools/vpython3: line 52: /home/****/webrtc/depot_tools/.cipd_bin/vpython3: No such file or directory

看來還需要設置curl代理

設置臨時代理

export http_proxy=http://192.168.40.169:21882
export https_proxy=http://192.168.40.169:21882

正常拉取代碼

fetch --nohooks webrtc
Running: gclient root
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Running: gclient config --spec 'solutions = [
  {
    "name": "src",
    "url": "https://webrtc.googlesource.com/src.git",
    "deps_file": "DEPS",
    "managed": False,
    "custom_deps": {},
  },
]
'
Running: gclient sync --nohooks --with_branch_heads

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://webrtc.googlesource.com/src.git /home/****/webrtc/_gclient_src_4e90wzdy' in '/home/****/webrtc'
Cloning into '/home/****/webrtc/_gclient_src_4e90wzdy'...
remote: Sending approximately 326.78 MiB ...
remote: Counting objects: 59, done
remote: Finding sources: 100% (59/59)
Receiving objects:  59% (237630/398439), 115.59 MiB | 1.13 MiB/s 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM