title: go modules - replace does not work - replacement module without version must be directory path (rooted or starting with
body: <p>I just want to use a local package using go modules.</p>
  
  <p>I have these files in a folder goweb:</p>
  
  <p><a href="https://i.stack.imgur.com/IzBRi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IzBRi.png" alt="enter image description here"></a></p>
  
  <p>and go.mod</p>
  
  <p>module goweb</p>
  
  <pre><code>go 1.12
  
  require mypack v0.0.0
  
  replace mypack =&gt; ./src/mypack
  </code></pre>
  
  <p>But <code>go.mod</code> complains:</p>
  
  <pre><code>replacement module without version must be directory path (rooted or starting with .
  </code></pre>
  
  <p>go get -u ./...</p>
  
  <pre><code>go: parsing src/mypack/go.mod: open &lt;local path&gt;/goweb/src/mypack/go.mod: no such file or directory
  go: error loading module requirements
  </code></pre>
  
  <p>So I am missing some path structure here</p>