title: error getting chaincode code mycc: path to chaincode does not exist
body: <p>I'm doing this tutorial: <a href="https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html" rel="nofollow noreferrer">https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html</a></p>
  
  <p>Now I am on my Peer and want to Install &amp; Instantiate Chaincode.</p>
  
  <p>For this I am doing: </p>
  
  <pre><code>root@23096337731b:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric-samples/chaincode/chaincode_example02/go/
  </code></pre>
  
  <p>But then I get this output: </p>
  
  <pre><code>2019-01-31 08:01:44.988 UTC [chaincodeCmd] checkChaincodeCmdParams -&gt; INFO 001 Using default escc
  2019-01-31 08:01:44.988 UTC [chaincodeCmd] checkChaincodeCmdParams -&gt; INFO 002 Using default vscc
  Error: error getting chaincode code mycc: path to chaincode does not exist: /opt/gopath/src/github.com/hyperledger/fabric-samples/chaincode/chaincode_example02/go
  </code></pre>
  
  <p><strong>Update:</strong> </p>
  
  <p>I think it's because I'm doing this:</p>
  
  <pre><code>peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric-samples/chaincode/chaincode_example02/go/
  </code></pre>
  
  <p>And the compiler thinks that the github link is a local directory.</p>