英文:
issues with installing some dependencies for a golang script
问题
在安装一些用于一个 Golang 文件的依赖时,出现了以下错误:
Vendoring Go dependencies ...
~/blockchain/FabricNetwork-2.x-main/artifacts/src/github.com/fabcar/go ~/blockchain/FabricNetwork-2.x-main
go: github.com/hyperledger/fabric@v2.1.1+incompatible: 缺少 go.sum 条目;要添加它:
go mod download github.com/hyperledger/fabric
go: github.com/hyperledger/fabric@v2.1.1+incompatible: 缺少 go.sum 条目;要添加它:
go mod download github.com/hyperledger/fabric
~/blockchain/FabricNetwork-2.x-main
Finished vendoring Go dependencies
请注意,这是一个错误信息,指示缺少 go.sum
条目。建议执行 go mod download github.com/hyperledger/fabric
命令来添加缺失的条目。
英文:
while i m installing some depedencies for a golang file
this error apears
Vendoring Go dependencies ...
~/blockchain/FabricNetwork-2.x-main/artifacts/src/github.com/fabcar/go ~/blockchain/FabricNetwork-2.x-main
go: github.com/hyperledger/fabric@v2.1.1+incompatible: missing go.sum entry; to add it:
go mod download github.com/hyperledger/fabric
go: github.com/hyperledger/fabric@v2.1.1+incompatible: missing go.sum entry; to add it:
go mod download github.com/hyperledger/fabric
~/blockchain/FabricNetwork-2.x-main
Finished vendoring Go dependencies
答案1
得分: 1
这个错误出现是因为你的Go包管理器没有创建go.sum文件,该文件包含了包的校验和。你是否尝试过按照你的消息中提到的运行go mod download github.com/hyperledger/fabric
命令?
缺少go.sum条目;要添加它:
go mod download github.com/hyperledger/fabric
希望这可以帮到你
祝好。
英文:
This error appears because your go package manger didn't created the go.sum file, that contain the package checksums.
Have you tried to run go mod download github.com/hyperledger/fabric
as metioned in your message?
missing go.sum entry; to add it:
go mod download github.com/hyperledger/fabric
I hope this help
Regards.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论