{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/dep/issues/911","repository_url":"https://api.github.com/repos/golang/dep","labels_url":"https://api.github.com/repos/golang/dep/issues/911/labels{/name}","comments_url":"https://api.github.com/repos/golang/dep/issues/911/comments","events_url":"https://api.github.com/repos/golang/dep/issues/911/events","html_url":"https://github.com/golang/dep/issues/911","id":245894012,"number":911,"title":"dep fails with root project import: xxx not in GOPATH","user":{"login":"karlmutch","id":1184005,"avatar_url":"https://avatars3.githubusercontent.com/u/1184005?v=4","gravatar_id":"","url":"https://api.github.com/users/karlmutch","html_url":"https://github.com/karlmutch","followers_url":"https://api.github.com/users/karlmutch/followers","following_url":"https://api.github.com/users/karlmutch/following{/other_user}","gists_url":"https://api.github.com/users/karlmutch/gists{/gist_id}","starred_url":"https://api.github.com/users/karlmutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlmutch/subscriptions","organizations_url":"https://api.github.com/users/karlmutch/orgs","repos_url":"https://api.github.com/users/karlmutch/repos","events_url":"https://api.github.com/users/karlmutch/events{/privacy}","received_events_url":"https://api.github.com/users/karlmutch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-27T00:39:01Z","updated_at":"2017-07-27T00:39:01Z","closed_at":null,"body":"### What version of Go (`go version`) and `dep` (`git describe --tags`) are you using?\r\ngo version go1.8 linux/amd64\r\n\r\n$ cd src/github.com/golang/dep/ \r\n$ git describe --tags\r\nv0.1.0-295-gd558b52\r\n\r\n$ export | grep GO\r\nGOPATH=/home/kmutch/example\r\nGORACE='halt_on_error=1 history_size=7'\r\nGOROOT=/home/kmutch/go\r\n\r\n### what commands did you run before running dep?\r\n\r\n$ git clone https://github.com/caarlos0/example.git\r\nCloning into 'example'...\r\n$ cd example\r\n$ export GOPATH=`pwd`\r\n$ export PATH=$GOPATH/bin:$PATH\r\n$ make setup\r\ngo get -u github.com/alecthomas/gometalinter\r\ngo get -u github.com/golang/dep/...\r\ngo get -u github.com/pierrre/gotestcover\r\ngo get -u golang.org/x/tools/cmd/cover\r\ndep ensure\r\nroot project import: /home/kmutch/example not in GOPATH\r\nMakefile:6: recipe for target 'setup' failed\r\nmake: *** [setup] Error 1\r\n\r\n### What `dep` command did you run?\r\n\r\n$ dep ensure\r\nroot project import: xxx not in GOPATH\r\n\r\n### What did you expect to see?\r\nno errors and the dependencies downloaded into the vendor directory\r\n\r\n### What did you see instead?\r\nroot project import: xxxx not in GOPATH\r\n\r\nI have also tried descending into subdirectories of the repo and running dep init from there to see if I can create the dep files, all to no avail.\r\n\r\nI freely admit that GOPATH and its side effects are entirely and utterly beyond my comprehension."}}
{"actor":{"display_login":"karlmutch"}}