golang usr/local/go/pkg/tool/linux_amd64/link: fingerprint mismatch 解决办法


本文摘自网络,作者DyncMing,侵删。

编译golang的module项目,自建module项目出现linux_amd64/link: fingerprint mismatch 错误时的解决办法

go build: -i flag is deprecated
# command-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: fingerprint mismatch: xxx111111xxx/xxx111111xxx has 796101b6c7f54eaf, import from xxx222222xxx/xxx222222xxx expecting b0c3b0b368b428c7

Compilation finished with exit code 2

出现这种错误是由于module中引用的版本不一致导致的。 找到依赖的自定义module库(xxx222222xxx/xxx222222xxx )源码目录下,

执行 go mod verify 即可解决!!!


相关阅读 >>

双链表 哈希 Go 实现lfu 缓存算法

Go 语言入门系列:数组的使用

Go dumpling! 让导出数据更稳定

Go学习(第一天)

以大见小 - rust快速实践(一)

Golang二维切片初始化

Golang 创建型设计模式 简单工厂

分布式事务最经典的七种解决方案

Go - httpclient 常用操作

聊聊Gorm的groupby

更多相关阅读请进入《Go》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...