系列文章目录
文章目录
前言
想制作一个Terraria模组,从github官方文档上开始学习,在克隆tModLoader仓库至本地时,以及运行setup.bat文件时拷贝其他仓库时遇到的两个问题,尝试了解决。
问题背景
在代理情况下有ssl验证无法clone,OpenSSL SSL_read
fatal: unable to access ‘https://github.com/Chicken-Bones/PatchReviewer.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
解决方案1(重复多次后成功)
git config --global http.sslVerify “false” # 取消http请求ssl验证
git config --global https.sslVerify “false” # 取消https请求ssl验证
ipconfig /flushdns # 刷新缓存
解决方案2(并未成功)
修改本地hosts
-
获取github最新ip
https://github.com.ipaddress.com/ # github ip
https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
https://github.com.ipaddress.com/assets-cdn.github.com # github静态文件 ip -
写入到hosts文件
本地路径 C:\Windows\System32\drivers\etc\hosts
文件最后追加以下文本
140.82.113.3 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com -
ipconfig /flushdns # 刷新缓存
获取github最新ip
无法克隆子路径,submodule considered for cloning, doesn’t need cloning any more?
fatal: not a git repository: C:/Studio/tModLoader/setup/PatchReviewer/DiffPatch/…/…/…/.git/modules/setup/PatchReviewer/modules/DiffPatch
Failed to clone ‘DiffPatch’. Retry scheduled
BUG: submodule considered for cloning, doesn’t need cloning any more?
fatal: could not get a repository handle for submodule ‘DiffPatch’
fatal: Failed to recurse into submodule path 'setup/PatchReviewer
解决方案
到.git\modules
网上说删除meson文件夹
本次直接删除了相关的所有文件夹