title: Go 'Can't Find Import'
body: <p>I'm attempting to incorporate Heroku's <code>log-shuttle</code> library (<a href="https://github.com/heroku/log-shuttle" rel="nofollow">https://github.com/heroku/log-shuttle</a>) into a Go project I'm working on. The tool is primarily designed to be run as an independent binary, but I'm hoping to integrate it in a different way in my tool. </p>
  
  <p>So I get the library:</p>
  
  <pre><code>$ go get github.com/heroku/log-shuttle
  $ ls $GOPATH/src/github.com/heroku/log-shuttle/
    batcher.go       Godeps ...
    ...
  </code></pre>
  
  <p>which returns successfully. Then I try to import the library:</p>
  
  <pre><code>package myPackage
  
  import (
    "github.com/heroku/log-shuttle"
    "fmt"
    "log"
  )
  ...
  </code></pre>
  
  <p>Great. But now I go to <code>go build</code> and...</p>
  
  <pre><code>$ go build
  # github.com/&lt;my project&gt;
  logWriter/log_shuttle_writer.go:5: can't find import: "github.com/heroku/log-shuttle"
  </code></pre>
  
  <p>I have my <code>GOPATH</code> set correctly (I believe): </p>
  
  <pre><code>$ go env
  GOARCH="amd64"
  GOBIN=""
  GOCHAR="6"
  GOEXE=""
  GOHOSTARCH="amd64"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/jeff/go/"
  GORACE=""
  GOROOT="/usr/lib/go"
  GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
  TERM="dumb"
  CC="gcc"
  GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
  CXX="g++"
  CGO_ENABLED="1"
  </code></pre>
  
  <p>And the package is installed and built, but it doesn't want to import. As you can see, there are non non-ASCII chars in the package path (though the hyphen is non-alpha-numeric), and I can't find any more info about what could be causing this problem.</p>
  
  <p>Not sure how it would matter, but I am using <code>godep</code> to try to manage my dependencies.</p>
  
  <p>Thanks in advance.</p>