Getting cannot find package “github.com/username/LoyaltyProgram/LoyaltyPkgUtil” in any of: when deploying chaincode

I have chain code under subfolders as below
src->github.com->username->LoyaltyProgram
MyWallet.go (Chaincode)
->LoyaltyProgram->main->Airline
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
src->github.com->username->LoyaltyProgram->LoyaltyPkgUtil

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 “github.com/jaibhavani/LoyaltyProgram/LoyaltyPkgUtil” in any of:
OUT – /opt/go/src/github.com/jaibhavani/LoyaltyProgram/LoyaltyPkgUtil (from $GOROOT)
OUT – /opt/gopath/src/github.com/jaibhavani/LoyaltyProgram/LoyaltyPkgUtil (from $GOPATH)”

The package is available on github.com 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.

Related:

Leave a Reply