title: How does docker go-wrapper script works
body: <p>hey can anyone explain to me what docker <code>go-wrapper</code> should do ?
  <a href="https://github.com/docker-library/golang/blob/master/go-wrapper" rel="nofollow noreferrer">https://github.com/docker-library/golang/blob/master/go-wrapper</a>
  following this comment:</p>
  
  <blockquote>
    <p>This script allows us to take a generic directory of Go source files
    such as "/go/src/app" and determine that the canonical "import path"
    of where that code expects to live and reference itself is
    "github.com/jsmith/my-cool-app".  It will then ensure that
    "/go/src/github.com/jsmith/my-cool-app" is a symlink to "/go/src/app",
    which allows us to build and run it under the proper package name.</p>
  </blockquote>
  
  <p>I understand that if I am developing a project under mine github go path then mounting it <code>/go/src/app</code> inside a docker container will work with imports still remained unchanged (github imports) correct ?</p>
  
  <pre><code>COPY . /go/src/app
  WORKDIR /go/src/app
  
  RUN go-wrapper download
  RUN go-wrapper install
  </code></pre>
  
  <p>however when i try to install/run with vendors using dep</p>
  
  <pre><code>go get -u github.com/golang/dep/cmd/dep
  dep init
  dep ensure -update
  </code></pre>
  
  <p>it downloads my repo to vendor and then tries to import it from there why is that ?</p>