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 即可解决!!!


相关阅读 >>

Golang如何处理输入?

Golang双向链表

a simple txt file processing tool by Golang

Go 执行命令获取结果 Golang os/exec stdoutpipe stdinpipe

2021-02-02. hello,Go.

Golang-cache是全局吗

详解Golang中的不定参数

方法集与表达式

一周 Go world 新鲜事

Golang 的内存管理(上篇)

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




打赏

取消

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

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

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

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

评论

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

    暂无评论...