Go 异常 + Error

一、Go异常

1、【unable to access 'https://github.com/用户名/仓库名.git/': SSL certificate problem 解决的问题】

Go 复制代码
D:\GIT_workspace\go-valet-driving-system\backend>kratos new verifyCode
🚀 Creating service verifyCode, layout repo is https://github.com/go-kratos/kratos-layout.git, please wait a moment.

Cloning into 'C:\Users\Administrator\.kratos\repo\github.com\go-kratos/kratos-layout@main'...
fatal: unable to access 'https://github.com/go-kratos/kratos-layout.git/': SSL certificate problem: unable to get local issuer certificate

[31mERROR: Failed to create project(exit status 128)[m

服务器不能识别git的SSL证书,操作停止执行

解决方式:

Go 复制代码
$ git config --global http.sslVerify false

干我们这行,啥时候懈怠,就意味着长进的停止,长进的停止就意味着被淘汰,只能往前冲,直到凤凰涅槃的一天!

相关推荐
逝水无殇32 分钟前
C# 异常处理详解
开发语言·后端·c#
玖玥拾2 小时前
C# 语言进阶(十五)C# 游戏服务端 MySQL 数据库
服务器·开发语言·网络·数据库·mysql·c#
铅笔侠_小龙虾2 小时前
Rust 学习目录
开发语言·学习·rust
考虑考虑3 小时前
Sentinel安装
java·后端·微服务
IT_陈寒3 小时前
SpringBoot自动配置失灵?你可能忘了这个关键注解
前端·人工智能·后端
云泽8083 小时前
从零吃透 C++ 异常:抛出捕获、栈展开、异常重抛与编码规范详解
开发语言·c++·代码规范
碎碎念_4923 小时前
SpringBoot + Vue 前后端分离从 0 到 1 完整环境配置流程
vue.js·spring boot·后端
灯澜忆梦3 小时前
GO---可见性规则
开发语言·golang
逝水无殇3 小时前
C# 文件的输入与输出详解
开发语言·数据库·后端·c#
YIAN4 小时前
从手写 Agent 工具到 MCP 协议:一文搞懂大模型跨进程跨语言工具调用
后端·agent·mcp