title: go module @latest found but does not contain package
body: <p>I'm trying to make use of go module for the first time. What exactly the following error message is telling me?</p>
  <pre><code>module github.com/mkideal/cli@latest found (v0.2.2), but does not contain package github.com/mkideal/cli
  module github.com/mkideal/cli@latest found (v0.2.2), but does not contain package github.com/mkideal/cli/ext
  </code></pre>
  <p>It happens during <code>go build</code>, whereas <code>go get</code> is just fine:</p>
  <pre><code>$ go get -v github.com/mkideal/cli
  go: github.com/mkideal/cli upgrade =&gt; v0.2.2
  </code></pre>
  <p>but not <code>go get -v ./...</code>, which gave me the same error as above. My proxy setting looks OK:</p>
  <pre><code>$ go env | grep GOPROXY
  GOPROXY=&quot;https://proxy.golang.org,direct&quot;
  </code></pre>
  <p>Is it a problem of the go module/package I'm trying to use, or my own code's problem? -- I took a look at
  <a href="https://github.com/mkideal/cli/blob/master/go.mod" rel="noreferrer">https://github.com/mkideal/cli/blob/master/go.mod</a> and it seems fine to me.</p>
  <p>See the following update for details.</p>
  <p>How can I overcome the situation? (I'm getting the same error message for my own repo as well)</p>
  <p><strong>UPDATE:</strong></p>
  <p>Here is the full log how I'm getting the above error:</p>
  <ul>
  <li>prepare <code>/tmp/015-file</code> from <a href="https://github.com/mkideal/cli/blob/master/_examples/015-file" rel="noreferrer">https://github.com/mkideal/cli/blob/master/_examples/015-file</a></li>
  <li>do <code>go mod init</code></li>
  <li>then <code>go build</code></li>
  </ul>
  <p>Now the details:</p>
  <pre><code>$ cd /tmp/015-file
  
  $ GO111MODULE=on
  
  $ go mod init github.com/mkideal/cli/015-file
  go: creating new go.mod: module github.com/mkideal/cli/015-file
  
  $ cat go.mod 
  module github.com/mkideal/cli/015-file
  
  go 1.14
  
  $ go build
  go: finding module for package github.com/mkideal/cli
  go: finding module for package github.com/mkideal/cli/ext
  main.go:6:2: module github.com/mkideal/cli@latest found (v0.2.2), but does not contain package github.com/mkideal/cli
  main.go:7:2: module github.com/mkideal/cli@latest found (v0.2.2), but does not contain package github.com/mkideal/cli/ext
  
  $ go get -v github.com/mkideal/cli
  go: github.com/mkideal/cli upgrade =&gt; v0.2.2
  
  $ go get -v ./...
  go: finding module for package github.com/mkideal/cli
  go: finding module for package github.com/mkideal/cli/ext
  go: finding module for package github.com/mkideal/cli
  go: finding module for package github.com/mkideal/cli/ext
  main.go:6:2: module github.com/mkideal/cli@latest found (v0.2.2), but does not contain package github.com/mkideal/cli
  main.go:7:2: module github.com/mkideal/cli@latest found (v0.2.2), but does not contain package github.com/mkideal/cli/ext
  
  $ go version
  go version go1.14.1 linux/amd64
  
  
  </code></pre>