title: Go mod replace dependency with private fork
body: <p>I added the dependency to <code>go.mod</code>:</p>
  <pre><code>require (
      github.com/labstack/echo/v4 v4.3.1
  )
  
  replace (
      github.com/labstack/echo/v4 =&gt; example.com/echo/v4.git v4.3.1
  )
  </code></pre>
  <p>And getting error like <code>replace example.com/echo.git: version &quot;v4.3.1&quot; invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v4</code>. Tag with the required version exists in the repo.</p>
  <p>While I'm tried to play with the version I got something like <code>v1.2.1-0.20210520145606-2defe74d39f0</code>, but when I set my replace section like:</p>
  <pre><code>replace (
      github.com/labstack/echo/v4 =&gt; example.com/echo/v4.git v1.2.1-0.20210520145606-2defe74d39f0
  )
  </code></pre>
  <p>I'm getting the error <code>errno=Connection refused</code> related to the private git server.</p>
  <p>Could you please advise what I'm doing wrong and how I can replace dependency with my private fork?</p>