title: Go modules replace command is not working
body: <p>I have following code structure for go module example (Go 1.14.2 on macOS)</p>
  
  <p>BookingNexus</p>
  
  <ul>
  <li>go.mod</li>
  <li>main.go</li>
  <li>server.go</li>
  </ul>
  
  <p>I added following dependency for <strong>server.go</strong></p>
  
  <pre><code>package main
  import bn "nurture.gitlab.com/Core/Contracs/BookingNexus/Gen/Go"
  </code></pre>
  
  <p>I added following code to go.mod</p>
  
  <pre><code>module nurture.gitlab.com/Core/BookingNexus
  
  go 1.14
  
  require (
      nurture.gitlab.com/Core/Contracts latest
  )
  
  replace nurture.gitlab.com/Core/Contracts latest =&gt; /Users/.../Core/Contracts
  
  </code></pre>
  
  <p>Since I don't have nurture.gitlab.com right now, so I used <code>replace</code> directive, howerver it's still trying to download from nurture.gitlab.com and saying that unable to dail tcp. 
  Generating following error if I run <code>go mod tidy</code></p>
  
  <pre><code>/Users/.../BookingNexus/go.mod:6: unrecognized import path "nurture.gitlab.com/Core/Contracts": https fetch: Get "https://nurture.gitlab.com/Core/Contracts?go-get=1": dial tcp: lookup nurture.gitlab.com: no such host
  </code></pre>
  
  <p>I expect replace command should provide alternative way to get the path, however it's still trying to download from unexistenet path and not considering replace directive at all (I tried including and excluding, got same message both times)</p>
  
  <p>Can somebody help me why is this is the case ?</p>