The structure of the project is:
.
├── glide.yaml
├── glide.lock
├── bin
├── pkg
├── src
└── vendor
I'm using Glide for dependency management, and the GOPATH
is the location of my project root (absolute path resolving to .
in the above tree.)
Glide appears to install dependencies correctly, however when attempting to run tests with Go 1.6.2, I don't see it even looking in the vendor/
folder before failing:
GOPATH=/home/charney/myproject go test -i ...
src/myapp/main.go:36:2: cannot find package "http://ift.tt/1salFH3" in any of:
/usr/local/go/src/http://ift.tt/1salFH3 (from $GOROOT)
/home/charneymyproject/src/http://ift.tt/1salFH3 (from $GOPATH)
The package it is looking for is located at /home/charneymyproject/vendor/http://ift.tt/1salFH3
Aucun commentaire:
Enregistrer un commentaire