找不到超级链接的链代码库

时间:2018-04-13 17:57:36

标签: go hyperledger-fabric hyperledger

嗨,所有能提供帮助的人。

目前正在开发面料版本1.0的链码。 问题是,即使在销售之后,当我进行部署时,我也会收到此错误。

[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
"

我使用的面料图片是:

  • hyperledger /织物等:x86_64-1.0.3
  • hyperledger / fabric-ca:x86_64-1.0.3
  • hyperledger /织物的工具:x86_64-1.0.3
  • hyperledger /织物的CouchDB:x86_64-0.4.6
  • hyperledger /织物订货者:x86_64-1.0.3

1 个答案:

答案 0 :(得分:1)

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

2个解决方案:1)转移到刚刚发布的Fabric v1.1 2)我无法让govendor在正确的Fabric版本中正常工作。所以你可以做一个"去得到" for" github.com/hyperledger/fabric" ;,然后" cd $ GOPATH / src / github.com / hyperleger / fabric",然后" git checkout v1.0.3&# 34;然后回到你的chaincode项目并做#g; govendor add ..."适用于您需要的任何Fabric包。 - 加里辛格