gpt4 book ai didi

go - 找不到 super 账本链代码库

转载 作者:IT王子 更新时间:2023-10-29 02:09:56 25 4
gpt4 key购买 nike

向所有能提供帮助的人问好。

目前正在为 fabric 1.0 版开发链码。问题是,即使在 vendoring 之后,当我进行部署时,我也会收到此错误。

[DEBUG] instantiate-chaincode - 
============ Instantiate chaincode on organization XYZ ============

error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/XYZ/vendor/github.com/hyperledger/fabric/bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of:
/chaincode/input/src/XYZ/vendor/plugin (vendor tree)
/opt/go/src/plugin (from $GOROOT)
/chaincode/input/src/plugin (from $GOPATH)
/opt/gopath/src/plugin
"
at /usr/src/app/node_modules/grpc/src/node/src/client.js:434:17
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/XYZ/vendor/github.com/hyperledger/fabric/bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of:
/chaincode/input/src/XYZ/vendor/plugin (vendor tree)
/opt/go/src/plugin (from $GOROOT)
/chaincode/input/src/plugin (from $GOPATH)
/opt/gopath/src/plugin
"

我使用的织物图像是:

  • super 账本/fabric-peer:x86_64-1.0.3
  • super 账本/fabric-ca:x86_64-1.0.3
  • hyperledger/fabric-tools:x86_64-1.0.3
  • hyperledger/fabric-couchdb:x86_64-0.4.6
  • hyperledger/fabric-orderer:x86_64-1.0.3

最佳答案

这个答案是由 Gari Singh 在上面的评论中提供的:

2 种解决方案:1) 转移到最近发布的 Fabric v1.1 2) 在下拉 Fabric 的正确版本方面,我无法让 govendor 正常工作。所以你可以为“github.com/hyperledger/fabric”做一个“go get”,然后是“cd $GOPATH/src/github.com/hyperleger/fabric”,然后是“git checkout v1.0.3”,然后回到您的链代码项目,并为您需要的任何 Fabric 包执行“govendor add ...”。– 加里·辛格

关于go - 找不到 super 账本链代码库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49822717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com