title: How to avoid `go get` `unknown revision` problem which occurs only inside Docker?
body: <p>When I follow an exact sequence of steps of cloning and building my project outside of docker it works well. When I place the exact same sequence into a docker file I am seeing the following error. </p>
  
  <p>I don't know enough about docker to know how to formulate this question more succinctly, except to say, does anyone know how to resolve this type of error. </p>
  
  <pre><code>Step 18/22 : RUN go build
   ---&gt; Running in 27e0719b2e7d
  go: gitlab.com/myorg/lalo@v0.12.3: reading gitlab.com/myorg/lalo/go.mod at revision v0.12.3: unknown revision v0.12.3
  </code></pre>
  
  <p>To be clear, I am able to create a new empty temporary folder on my computer (without docker and do a full clean build), it is only when I do the same in docker that I see this unknown revision issue.</p>