title: Go get error while getting major version module dependency
body: <p>I have an executable go module and i am trying to execute the below command</p>
  <pre><code>go get github.com/saipraveen-a/number-manipulation/v2
  </code></pre>
  <p>and get this error:</p>
  <pre><code>module github.com/saipraveen-a/number-manipulation@upgrade found (v1.0.1), but does not contain package github.com/saipraveen-a/number-manipulation/v2
  </code></pre>
  <p><strong>number-manipulation</strong> is a non-executable go module with the following tags
  v1.0.0, v1.0.1 and v2.0.0.</p>
  <p>I am new to go. So someone please tell me what is the issue here.</p>
  <p>Module with main package</p>
  <p><strong>app.go</strong></p>
  <pre><code>package main
  
  import (
      &quot;fmt&quot;
  
      &quot;github.com/saipraveen-a/number-manipulation/calc&quot;
      calcNew &quot;github.com/saipraveen-a/number-manipulation/v2/calc&quot;
  )
  
  func main() {
      result := calc.Add(1, 2)
      fmt.Println(&quot;calc.Add(1,2) =&gt;&quot;, result)
  
      result = calc.Add(1, 2, 3, 4, 5)
      fmt.Println(&quot;calc.Add(1,2,3,4,5) =&gt;&quot;, result)
  
      newResult, err = calcNew.Add()
  
      if err != nil {
          fmt.Println(&quot;Error: =&gt;&quot;, error)
      } else {
          fmt.Println(&quot;calcNew.Add(1,2,3,4) =&gt;&quot;, calcNew.Add(1, 2, 3, 4))
      }
  }
  </code></pre>
  <p><strong>go.mod</strong></p>
  <pre><code>module main
  
  go 1.14
  
  require github.com/saipraveen-a/number-manipulation v1.0.1
  </code></pre>
  <p><strong>go version go1.14.3 darwin/amd64</strong></p>
  <p><strong>go env</strong></p>
  <pre><code>GO111MODULE=&quot;&quot;
  GOPATH=&quot;/Users/&lt;user-id&gt;/Golang&quot;
  GOMOD=&quot;/Users/&lt;user-id&gt;/GoModules/main/go.mod&quot;
  </code></pre>
  <p>I tried set GO111MODULE=on; but that doesnt change the value of GO111MODULE</p>
  <pre><code># go build app.go 
  
  go: finding module for package github.com/saipraveen-a/number-manipulation/v2/calc
  
  app.go:7:2: module github.com/saipraveen-a/number-manipulation@latest found (v1.0.1), but does not contain package github.com/saipraveen-a/number-manipulation/v2/calc
  </code></pre>