tModLoader(泰拉瑞亚模组安装工具)学习过程1:github克隆仓库相关问题解决

系列文章目录

tModLoader学习过程1:github克隆仓库



前言

想制作一个Terraria模组,从github官方文档上开始学习,在克隆tModLoader仓库至本地时,以及运行setup.bat文件时拷贝其他仓库时遇到的两个问题,尝试了解决。

问题背景

tMod github链接
问题背景

在代理情况下有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

  1. 获取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

  2. 写入到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

  3. 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文件夹
本次直接删除了相关的所有文件夹
.git相关文件夹

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值