title: How to fix parsing go.mod module declares its path as "x" but was required as "y"
body: <p>I am working on a go project, which has a dependency on <code>original-project</code>. I now want to change the behavior in this project by modifying <code>original-project</code>. So I cloned <code>github.com/y/original-project</code> to <code>github.com/x/my-version</code> and replaced all occurrence of <code>github.com/y/original-project</code> with <code>github.com/x/my-version</code> (including in <code>mod.go</code>).</p>
  
  <p>But I keep getting this error:</p>
  
  <pre><code>go: github.com/x/my-version@v0.5.2: parsing go.mod:
      module declares its path as: github.com/y/original-project
              but was required as: github.com/x/my-version
  </code></pre>
  
  <p>Even when I run <code>go get -u -v -f all</code> or <code>github.com/x/my-version</code></p>
  
  <p>What could I be doing wrong?</p>