go出现missing go.sum entry for module providing package 错误
文章目录
- 前言
- 问题分析
- 解决方法
前言
从github下载了别人的代码后直接执行,报missing go.sum entry for module providing package
错误
问题分析
代码中使用了第三方库,但是go.mod并没有跟着更新
解决方法
在项目目录下打开终端,执行go mod tidy
解决,这个命令会删除不需要的依赖包、下载新的依赖包、更新go.sum
go出现missing go.sum entry for module providing package 错误相关推荐
- go build 编译报错 missing go.sum entry for module providing package
go build 编译报错 missing go.sum entry for module providing package 解决方法 // 移除未使用的依赖 go mod tidy 再次编译,就可 ...
- go语言单元测试报错:missing go.sum entry for module providing package github.com/stretchr/testify/assert
报错:missing go.sum entry for module providing package github.com/stretchr/testify/assert (imported by ...
- missing go.sum entry for module providing package
1.启动报错信息: xxxxx missing go.sum entry for module providing package xxxxxxxx 解决方案: go mod tidy 2.go mo ...
- 【go modules】missing go.sum entry for module providing package
问题描述: go get 下载第三方包采用module 管理包一般会放在pkg/mod 下面,那么如何自动管理包,以及导入包呢? go get github.com/gin-gonic/gin imp ...
- [Go] 解决main.go:5:2: missing go.sum entry for module providing package github.com/astaxie/beego
当在代码中使用了第三方库 ,但是go.mod中并没有跟着更新的时候 如果直接run或者build就会报这个错误 main.go:5:2: missing go.sum entry for module ...
- Go构建项目的时候,解决missing go.sum entry for module providing package <package_name>
解决方案一: 当在代码中使用了第三方库 ,但是go.mod中并没有跟着更新的时候 如果直接run或者build就会报这个错误 missing go.sum entry for module provi ...
- missing go.sum entry for module providing package github.com/astaxie/beego
解决方法 //执行如下代码 go build -mod=mod
- go build解决missing go.sum.entry
项目场景: go build 编译项目失败 问题描述 编译失败报错:missing go.sum.entry; to add it, 原因分析: 原因:依赖包没有更新成功 解决方案: 解决方案: 1. ...
- golang || gin运行,出现类似这种的错误: missing go.sum entry; to add it:
go: github.com/gin-gonic/gin@v1.7.4: missing go.sum entry; to add it: go mod download github.com/gin ...
最新文章
- Codeforces Round #369 (Div. 2)
- BigDecimal类基础
- Linq 下的 Take() 方法内部机制是怎样的?
- arm32和arm64常用指令B BL BLX机器码计算
- linux --常用命令
- 接口测试和性能测试的区别
- 牛客 2021年度训练联盟热身训练赛第二场 A题
- 结合CmakeList来更好地理解windows下的动态库和静态库
- msp430入门编程07
- 【记录】【解决方案】java发邮件错误:Couldn‘t connect to host, port: localhost, 25; timeout -1;易邮SMTP服务器无法启动;
- Eclipse的下载Spring Tool Suite(sts)
- java试题管理系统
- html实现学生成绩等级划分,【小学生成绩等级】_小学生成绩等级评价制度
- [Plant Simulation]使用TableFile和Method进行仓库仿真(Byref函数)
- 10_放置街灯(Placing Lampposts,UVa 10859)
- 拐道交叉的css3动画,CSS3图片翻转动画技术详解
- ZYNQ 图像处理之千兆网传(一)【寄存器级操作】
- ICLR 2022杰出论文奖出炉!清华、人大获奖!浙大提名
- 网页中保存的密码查看方法
- 如何用ChemDraw选择结构