title: Using forked package import in Go
body: <p>Suppose you have a repository at <code>github.com/someone/repo</code> and you fork it to <code>github.com/you/repo</code>. You want to use your fork instead of the main repo, so you do a</p>
  
  <pre><code>go get github.com/you/repo
  </code></pre>
  
  <p>Now all the import paths in this repo will be "broken", meaning, if there are multiple packages in the repository that reference each other via absolute URLs, they will reference the source, not the fork.</p>
  
  <p>Is there a better way as cloning it manually into the right path?</p>
  
  <pre><code>git clone git@github.com:you/repo.git $GOPATH/src/github.com/someone/repo
  </code></pre>