title: Go: local import in non-local package
body: <p>I have the following file structure:</p>
  
  <pre><code>.
  ├── bin
  │   └── hello
  ├── pkg
  └── src
      └── jacob.uk.com
          ├── greeting
          │   └── greeting.go
          └── helloworld.go
  
  5 directories, 3 files
  </code></pre>
  
  <p>With the following GOPATH</p>
  
  <pre><code>/Users/clarkj84/Desktop/LearningGo
  </code></pre>
  
  <p>Upon executing <code>/usr/local/go/bin/go install jacob.uk.com</code> within the <code>src</code> folder, I get the error <code>local import "./greeting" in non-local package</code></p>
  
  <p><code>helloworld.go</code>:</p>
  
  <pre><code>package main;
  import "./greeting"
  
  func main() {
  
  }
  </code></pre>