安装Golang脚本的一些依赖项时出现问题。

huangapple go评论91阅读模式
英文:

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

希望这可以帮到你 安装Golang脚本的一些依赖项时出现问题。
祝好。

英文:

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 安装Golang脚本的一些依赖项时出现问题。
Regards.

huangapple
  • 本文由 发表于 2022年8月8日 23:01:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/73280008.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定