title: http insecure protocol when compiling Go program for hyperledger
body: <p>I am using</p>
  
  <pre><code>go version go1.9.1 windows/amd64
  </code></pre>
  
  <p>When I try to compile using:</p>
  
  <pre><code>go get -u --tags nopkcs11 
  github.com/hyperledger/fabric/core/chaincode/shim
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>package github.com/hyperledger/fabric/core/chaincode/shim: cannot download,
  http://gerrit.hyperledger.org/r/fabric uses insecure protocol
  </code></pre>
  
  <p>I can't change to <code>https://github.com/hyperledger/...</code> and https is not allowed.</p>
  
  <p>If you go to <a href="http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#choosing-a-location-for-the-code" rel="nofollow noreferrer">this source</a>  and go to <em>Pulling it all together</em>, you can see the source code I am using.</p>
  
  <p>This is the beginning of it.</p>
  
  <pre><code>package main
  
  import (
      "fmt"
  
      "github.com/hyperledger/fabric/core/chaincode/shim"
      "github.com/hyperledger/fabric/protos/peer"
  )
  
  // SimpleAsset implements a simple chaincode to manage an asset
  type Appointment struct {
  }
  
  // Init is called during chaincode instantiation to initialize any
  // data. Note that chaincode upgrade also calls this function to reset
  // or to migrate data.
  func (t *SimpleAsset) Init(stub shim.ChaincodeStubInterface) peer.Response {
  </code></pre>
  
  <p>How do I successfully compile my program?</p>