Bluemix Services에 car-lease-demo를 배포하려고하는데 swaggerApi에서 올바른 코드 경로를 찾을 수 없습니다. 나는 github repo from IBM를 사용했습니다하지만이 오류를 출력합니다REST-chaincodeID 경로를 통해 car-lease-demo를 배포 할 때 "chaincode 패키지 바이트를 가져 오는 중 오류가 발생했습니다"
{
"jsonrpc": "2.0",
"error": {
"code": -32001,
"message": "Deployment failure",
"data": "Error when deploying chaincode: Error getting chaincode package bytes: Error getting code 'go get' failed with error: \"exit status 1\"\npackage github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code: cannot find package \"github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code\" in any of:\n\t/opt/go/src/github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code (from $GOROOT)\n\t/opt/gopath/_usercode_/798513695/src/github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code (from $GOPATH)\n\t/opt/gopath/src/github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code\n"
},
"id": 3
}
나는이 source를 발견하고, JSON 탭을 선택하지만, 처음에 언급되어있는 패키지가 작동하지 않습니다.
BMX에 car-lease-demo chaincode를 배포하기위한 chaincodeID의 올바른 경로는 무엇입니까?
는 go get <chaincode path>
가 chaincode의 배포시 실패 오류 메시지에 말했듯이 나는 BMX의 v0.6
[이 답변] (http://stackoverflow.com/a/40208148/1270789) 및 [이 답변] (http://stackoverflow.com/a/40646412/1270789) 유사한 문제에 대한 해결책을 제공합니다 . –
이 답변을 보았습니다. 그러나 자동차 임대 계약 데모를위한 구체적인 경로가 있어야한다고 생각합니다. 또한 오류없이 "learn-chaincode"예제를 배포했으며 사용중인 BMX 버전이 내가 생각하는 오류에 대해 문제가되어서는 안됩니다. –