{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/dex/issues/387","repository_url":"https://api.github.com/repos/coreos/dex","labels_url":"https://api.github.com/repos/coreos/dex/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/coreos/dex/issues/387/comments","events_url":"https://api.github.com/repos/coreos/dex/issues/387/events","html_url":"https://github.com/coreos/dex/issues/387","id":144126276,"number":387,"title":"\"godep save ./...\" fails with vendor directory","user":{"login":"ericchiang","id":2342749,"avatar_url":"https://avatars.githubusercontent.com/u/2342749?v=3","gravatar_id":"","url":"https://api.github.com/users/ericchiang","html_url":"https://github.com/ericchiang","followers_url":"https://api.github.com/users/ericchiang/followers","following_url":"https://api.github.com/users/ericchiang/following{/other_user}","gists_url":"https://api.github.com/users/ericchiang/gists{/gist_id}","starred_url":"https://api.github.com/users/ericchiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericchiang/subscriptions","organizations_url":"https://api.github.com/users/ericchiang/orgs","repos_url":"https://api.github.com/users/ericchiang/repos","events_url":"https://api.github.com/users/ericchiang/events{/privacy}","received_events_url":"https://api.github.com/users/ericchiang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/dex/labels/area/developer%20tooling","name":"area/developer tooling","color":"bfe5bf"},{"url":"https://api.github.com/repos/coreos/dex/labels/kind/bug","name":"kind/bug","color":"ff0000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-29T01:17:53Z","updated_at":"2016-04-07T22:30:26Z","closed_at":null,"body":"Now that we use the `vendor` directory the go tool `./...` expression detects all packages in the `vendor` directory. `godep save ./...`, our recommended way of adding new packages, attempts to save all the dependencies of the vendored dependencies. Blah.\r\n\r\nAlso note that `go list ./... | grep -v vendor` fails so we can't use that ATM to filter out packages.\r\n\r\n```\r\n$ go list ./... | grep -v './vendor'\r\ncan't load package: /home/eric/src/github.com/coreos/dex/schema/generator_import.go:10:8: import \"google.golang.org/api/google-api-go-generator\" is a program, not an importable package\r\n```\r\n\r\nEither figure out how to get around this with godep and update the dev docs (for example what [rkt does](https://github.com/coreos/rkt/blob/e56895779706097a5fdfc7099003d105cc325638/scripts/godep-save)) or consider being a guinea pig for coreos/docs#775"},"comment":{"url":"https://api.github.com/repos/coreos/dex/issues/comments/207118310","html_url":"https://github.com/coreos/dex/issues/387#issuecomment-207118310","issue_url":"https://api.github.com/repos/coreos/dex/issues/387","id":207118310,"user":{"login":"ericchiang","id":2342749,"avatar_url":"https://avatars.githubusercontent.com/u/2342749?v=3","gravatar_id":"","url":"https://api.github.com/users/ericchiang","html_url":"https://github.com/ericchiang","followers_url":"https://api.github.com/users/ericchiang/followers","following_url":"https://api.github.com/users/ericchiang/following{/other_user}","gists_url":"https://api.github.com/users/ericchiang/gists{/gist_id}","starred_url":"https://api.github.com/users/ericchiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericchiang/subscriptions","organizations_url":"https://api.github.com/users/ericchiang/orgs","repos_url":"https://api.github.com/users/ericchiang/repos","events_url":"https://api.github.com/users/ericchiang/events{/privacy}","received_events_url":"https://api.github.com/users/ericchiang/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T22:30:26Z","updated_at":"2016-04-07T22:30:26Z","body":"FYI, I tried moving dex over to glide as a POC and it worked pretty well. https://github.com/coreos/docs/issues/775#issuecomment-207116463"}}