Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

How to deploy GO chaincode which uses other libraries? #121

Open
jonathan-yk-tan opened this issue Oct 19, 2017 · 1 comment
Open

How to deploy GO chaincode which uses other libraries? #121

jonathan-yk-tan opened this issue Oct 19, 2017 · 1 comment

Comments

@jonathan-yk-tan
Copy link

Using the Blockchain Enterprise Plan on Bluemix, we have successfully created a new channel and added peers, however when trying to deploy GO chaincode which uses third-party libraries, we are getting the error:

"Error:
/opt/go/src/github.com/xeipuuv/gojsonschema (from $GOROOT) /chaincode/input/src/github.com/xeipuuv/gojsonschema (from $GOPATH) /opt/gopath/src/github.com/xeipuuv/gojsonschema "

Does the Enterprise plan support any GO package manager like Govend?

If not, what is the directory structure to upload the dependencies together with the chaincode zip?

@mastersingh24
Copy link

@jonathan-yk-tan - You need to use a tool like govendor to vendor any dependencies which are not part of the Go std library into your chaincode package

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants