Getting cannot find package “” in any of: when deploying chaincode

I have chain code under subfolders as below
MyWallet.go (Chaincode)
Airline.go (Chaincode)
I have a package **LoyaltyPkg.go** that is under the following folder and is imported in Mywallet.go and Airline.go chain code

I am able to deploy MyWallet.go on to bluemix using the deploy spec.
However when i try to deploy the Airline.go chain code, i am getting

“cannot find package “” in any of:
OUT – /opt/go/src/ (from $GOROOT)
OUT – /opt/gopath/src/ (from $GOPATH)”

The package is available on under the above folder. I don’t know why i am unable to deploy the Airline.go chaincode to bluemix.
Please note, i am able to build Airline.go file locally with no errors.


Leave a Reply