title: "Error getting chaincode package bytes" when deploying chaincode on hyperledger via REST
body: <p>I'm trying to deploy chaincode on hyperledger (Bluemix service) via POST/REST to </p>
  
  <p>/chaincode
  QuerySpec</p>
  
  <blockquote>
    <p>{ "jsonrpc": "2.0", "method": "deploy", "params": { "type": 1,
    "chaincodeID": { "path":
    "<a href="https://github.com/romeokienzler/learn-chaincode/tree/master/finished" rel="nofollow">https://github.com/romeokienzler/learn-chaincode/tree/master/finished</a>"
    }, "ctorMsg": { "function": "init", "args": [ "hi there" ] },
    "secureContext": "user_type1_0" }, "id": 1 }</p>
  </blockquote>
  
  <p>I've also tried those links</p>
  
  <p><a href="https://github.com/romeokienzler/learn-chaincode/blob/master/finished/chaincode_finished?raw=true" rel="nofollow">https://github.com/romeokienzler/learn-chaincode/blob/master/finished/chaincode_finished?raw=true</a></p>
  
  <p><a href="https://raw.githubusercontent.com/romeokienzler/learn-chaincode/master/finished/chaincode_finished.go" rel="nofollow">https://raw.githubusercontent.com/romeokienzler/learn-chaincode/master/finished/chaincode_finished.go</a></p>
  
  <p>I always get</p>
  
  <blockquote>
    <p>{   "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/romeokienzler/learn-chaincode/tree/master/finished: cannot
    find package
    'github.com/romeokienzler/learn-chaincode/tree/master/finished' in any
    of:\n\t/usr/local/go/src/github.com/romeokienzler/learn-chaincode/tree/master/finished
    (from
    $GOROOT)\n\t/go/<em>usercode</em>/552962906/src/github.com/romeokienzler/learn-chaincode/tree/master/finished
    (from
    $GOPATH)\n\t/go/src/github.com/romeokienzler/learn-chaincode/tree/master/finished\n"
    },   "id": 1 }</p>
  </blockquote>
  
  <p>Any idea?</p>