package vpc_app/unit_test.go:
import (
"github.com/my-org/my-library/http"
)
...
package github.com/my-org/my-library/http/http.go:
package http
...
File Structure:
$ tree
tree
.
├── glide.lock
├── glide.yaml
├── unit
│ └── modules
│ └── vpc
│ └── vpc-app
│ └── unit_test.go
└── vendor
└── github.com
└── my-org
└── my-library
├── http
│ └── http.go
Problem:
When I run go test ./...
I get this error:
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)
Question:
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?
Update #1:
As requested, here's my go env
output:
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"