编译及安装包制作中出现go mod和git管理代码导致的go.sum校验和不匹配
【问题分类】
- bug
- 环境依赖 go 1.18版本(sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.18.10.linux-amd64.tar.gz)
- 其他补充:
【问题描述】(请对问题进行描述,方便定位问题)
[root@localhost scripts]# ./build_release.shbuild chainmaker /root/workspace/chainmaker-go...build for linux or macverifying github.com/oleiade/reflections@v1.0.0/go.mod: checksum mismatchdownloaded: hl:rdFxbxg40XVZwjoF+e9jqjDkc7dbp97vkRixKo2JR60=go.sum:h1:RbATFBbKYkVdqmsFtx13Bb/tVhRolgOBXunWTZKeL4w= SECURITY ERRORThis download does NOT match an earlier download recorded in go.sum.The bits may have been replaced on the origin server, or an attacker mayhave intercepted the download attempt. For more information, see 'go help module-auth!make: *** [chainmaker] Error 1
具体的现象,操作步骤,前置条件等,尽可能描述清楚,有截图说明更佳 然后我进行修改使用了 go clean -modcache go mod tidy 这两种命令会出现go mode tidy出现报错go: warning: “all“ matched no packages