title: "package XXX is not in GOROOT" when building a Go project
body: <p>I have a weird issue that arose when I took a break from this project. Upon starting up Goland, I'm riddled with errors when trying to run my project. </p>
  
  <p>The specific error, when building one of my packages, is: 
  <code>start.go: package project/game is not in GOROOT (C:\Go\src\project\game)</code></p>
  
  <p>I have a folder structure as such under <code>C:\Users\username</code></p>
  
  <pre><code>go
  |-src
     |-project
          |-game
              |-entity
                   |-whatever.go
              |-game_stuff.go
          |-server
  </code></pre>
  
  <p>and my env vars are as such:</p>
  
  <pre><code>GOROOT=C:\Go 
  GOPATH=C:\Users\ketchup\go 
  </code></pre>
  
  <p>for each of the modules (project/game/entity, project/game, project/server), I did a <code>git mod init</code>. </p>
  
  <p>When building, Goland will try to run this:</p>
  
  <pre><code>C:\Go\bin\go.exe build -o C:\Users\ketchup\AppData\Local\Temp\___go_build_project_server.exe project/server
  </code></pre>
  
  <p>and return the error.</p>
  
  <p>Can anyone help me with this issue? Kind of lost since Goland was working fine the last time I opened it. Also not even sure what direction to look at - I'm pretty new to Go and I'm not really sure what documentation to look at :\  Thank you everyone! </p>