title: Global GOPATH in gitlab-ci
body: <p>We are building several GO projects on our gitlab ci and we have the following dilemma. </p>
  
  <p>When building projects with a <em>global</em> GOPATH (like on local machines), the builds take too long as all the dependencies are fetched on every build.  </p>
  
  <p>On the other hand, when defining a local GOPATH and caching the folders created by go get, we get fast builds, but awkward project setups, where the project itself is not on the GOPATH etc...</p>
  
  <p>It would be nice if there was global caching but gitlab-ci does not allow that:</p>
  
  <blockquote>
    <p>WARNING: /build/src/git.my.repo: not supported: outside build directory</p>
  </blockquote>