title: Go modules are not found using VGO and go.mod
body: <p>I'm using versioned Go command to manage my vendors, everything is working but when I run <code>go build</code> it doesn't find my local packages</p>
  
  <p>I have set the module root inside my <code>go.mod</code> with I still get an error</p>
  
  <blockquote>
    <p>build foo: cannot find module for path </p>
  </blockquote>
  
  <p>The project arch is like</p>
  
  <pre><code>foo/
  |__src/github.com/username/package1/package1.go
  |__src/github.com/username/package2/package2.go
  |__src/github.com/username/package3/package3.go
  |__main.go
  |__go.mod
  |__go.sum
  </code></pre>
  
  <p>So my <code>go.mod</code> look like</p>
  
  <pre><code>module foo
  
  require (
      ...
  )
  </code></pre>
  
  <p>I followed <a href="https://research.swtch.com/vgo-tour" rel="nofollow noreferrer">https://research.swtch.com/vgo-tour</a> but I don't understand why this is not working.</p>
  
  <p>My Go version is <code>1.11</code> and the <code>foo</code> folder is inside my <code>GOPATH</code> when I try outside the <code>GOPATH</code> this is not even working.</p>
  
  <p>The only time I made it work is doing</p>
  
  <pre><code>module github.com/username/package1
  
  require (
      ...
  )
  </code></pre>
  
  <p>but the 2 other packages are not found and I get the same error as above.</p>
  
  <p>Did I miss something or do the module path I provide must be changed ?</p>