title: malformed module path ... missing dot in first path element
body: <p>I have a project with 2 different executables, each having it's own dependencies plus a shared dependency on the root, something like this:</p>
  
  <pre><code>Root
    |-&gt;server
    |    |-&gt; main.go
    |    |-&gt; someOtherFiles.go
    |    |-&gt; go.mod
    |    |-&gt; go.sum
    |-&gt;validator
    |    |-&gt; main.go
    |    |-&gt; someOtherFiles.go
    |    |-&gt; go.mod
    |    |-&gt; go.sum
    |-&gt;utils
    |    |-&gt; someOtherFiles.go
    |-&gt;config
    |    |-&gt; someOtherFiles.go
    |-&gt; go.mod
    |-&gt; go.sum
  </code></pre>
  
  <p>My root's go.mod is like this</p>
  
  <pre><code>module prex-kyc
  
  go 1.13
  
  require ({requiredDependencies})
  </code></pre>
  
  <p>And my validator's go.mod is like this (server's is analogue)</p>
  
  <pre><code>module validator
  
  go 1.13
  
  require (
      prex-kyc v0.0.0-00010101000000-000000000000
      {otherRequiredDependencies}
  )
  
  replace prex-kyc =&gt; ../
  </code></pre>
  
  <p>And in both validator's and server's main.go I do an import like this:</p>
  
  <pre><code>import (
      "prex-kyc/utils"
      {someOtherImports}
  )
  </code></pre>
  
  <p>When I try to build either one of the projects i get this error: <code>build validator: cannot load prex-kyc/config: malformed module path "prex-kyc/config": missing dot in first path element</code></p>
  
  <p>I know there's nothing wrong with the code because it can be compiled in someone else's environment.</p>
  
  <p>I have tried building using go versions 1.12 and 1.13 and both windows 10 and Debian Linux.</p>