下載步驟同?electron源碼下載及編譯_electron源碼編譯-CSDN博客
問題1 從github 下載 dugite超時,原因沒有找到
Validation failed. Expected '8ea2d0d3c9d9e4615069913207371ffe892dc10fb93975972f2f6e668f2e3b3a' but got 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
?A timeout has occurred while downloading 'https://github.com/desktop/dugite-native/releases/download/v2.29.3-2/dugite-native-v2.29.3-3d467be-windows-x64.tar.gz' - check your internet connection and try again. If you are using a proxy, make sure that the HTTP_PROXY and HTTPS_PROXY environment variables are set. GotError [RequestError]: connect ETIMEDOUT 20.205.243.166:443
魔法感覺沒問題換了多個節點,用不同的魔法都不行。
我的網絡應該可以訪問github的,因為使用web網頁可以訪問github, 使用 curl -L -O?https://github.com/desktop/dugite-native/releases/download/v2.29.3-2/dugite-native-v2.29.3-3d467be-windows-x64.tar.gz 也可以下載,js腳本下載就會超時。
嘗試修改js腳本,加重定向,修改tls版本,都沒有成功。
最后的解決辦法:
手動下載,放在對應的目錄下
- 網頁端可以下載 https://github.com/desktop/dugite-native/releases/download/v2.29.3-2/dugite-native-v2.29.3-3d467be-windows-x64.tar.gz
- 設置環境變量 set DUGITE_CACHE_DIR=D:\electron-22.3.27\.git_cache
- 把手動下載好的文件放在D:\electron-22.3.27\.git_cache目錄下
- 然后再次執行?gclient sync --with_branch_heads --with_tags,不下載當然不會再超時
問題 2 找不到 gs://chromium-tools-traffic_annotation
Failed to fetch file gs://chromium-tools-traffic_annotation/6b6864f1c8afbcdae654582e5f3309d7b1d5a6ad for src/tools/traffic_annotation/bin/win32\traffic_annotation_auditor.exe. [Err: CommandException: No URLs matched: gs://chromium-tools-traffic_annotation/6b6864f1c8afbcdae654582e5f3309d7b1d5a6ad
D:\electron-22.3.27\electron_src\src\third_party\depot_tools\external_bin\gsutil\gsutil_4.68\gsutil\gslib\vendored\boto\boto\pyami\config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE ()
? warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
]
問題3:過程中嘗試下載最新的depot_tools,第一次gclient更新失敗
也不是更新失敗吧,更新時比較快,沒有報錯,但是gclient sync --with_branch_heads --with_tags時,多種報錯,其實配置了DEPOT_TOOLS_UPDATE為0,gclient根本沒有更新,所以gclient sync會有多個錯誤,多個工具找不到