title: Why doesn't go locate my vendored library?
body: <p><strong>package vpc_app/unit_test.go:</strong></p>
  
  <pre><code>import (
      "github.com/my-org/my-library/http"
  )
  ...
  </code></pre>
  
  <p><strong>package github.com/my-org/my-library/http/http.go:</strong></p>
  
  <pre><code>package http
  ...
  </code></pre>
  
  <p><strong>File Structure:</strong></p>
  
  <pre><code>$ tree
  tree
  .
  ├── glide.lock
  ├── glide.yaml
  ├── unit
  │   └── modules
  │       └── vpc
  │           └── vpc-app
  │               └── unit_test.go
  └── vendor
      └── github.com
          └── my-org
              └── my-library
                  ├── http
                  │   └── http.go
  </code></pre>
  
  <p><strong>Problem:</strong></p>
  
  <p>When I run <code>go test ./...</code> I get this error:</p>
  
  <pre><code>vendor/github.com/my-org/my-library/url_checker.go:7:2: cannot find package "github.com/my-org/my-library/http" in any of:
      /usr/local/go/src/github.com/my-org/my-library/http (from $GOROOT)
      /Users/josh/go/src/github.com/my-org/my-library/http (from $GOPATH)
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>I'm using go 1.6, but it doesn't seem to look in my vendor directory to find the package. Any ideas on why that might be?</p>
  
  <p><strong>Update #1:</strong>
  As requested, here's my <code>go env</code> output:</p>
  
  <pre><code>OARCH="amd64"
  GOBIN=""
  GOEXE=""
  GOHOSTARCH="amd64"
  GOHOSTOS="darwin"
  GOOS="darwin"
  GOPATH="/Users/josh/go"
  GORACE=""
  GOROOT="/usr/local/go"
  GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
  GO15VENDOREXPERIMENT="1"
  CC="clang"
  GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
  CXX="clang++"
  CGO_ENABLED="1"
  </code></pre>