{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21098","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21098/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21098/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21098/events","html_url":"https://github.com/kubernetes/kubernetes/issues/21098","id":133075945,"number":21098,"title":"Support vendor/ directories for vendoring code","user":{"login":"krousey","id":157083,"avatar_url":"https://avatars.githubusercontent.com/u/157083?v=3","gravatar_id":"","url":"https://api.github.com/users/krousey","html_url":"https://github.com/krousey","followers_url":"https://api.github.com/users/krousey/followers","following_url":"https://api.github.com/users/krousey/following{/other_user}","gists_url":"https://api.github.com/users/krousey/gists{/gist_id}","starred_url":"https://api.github.com/users/krousey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krousey/subscriptions","organizations_url":"https://api.github.com/users/krousey/orgs","repos_url":"https://api.github.com/users/krousey/repos","events_url":"https://api.github.com/users/krousey/events{/privacy}","received_events_url":"https://api.github.com/users/krousey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/none","name":"team/none","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-11T20:06:15Z","updated_at":"2016-04-12T20:18:59Z","closed_at":null,"body":"Go 1.5 introduced experimental support for vendor directories that are enabled via an environment variable. In Go 1.6, it will be enabled by default, but you can turn it off. In Go 1.7, you will no longer be able to turn it off.\r\n\r\nhttp://tip.golang.org/cmd/go/#hdr-Vendor_Directories\r\n\r\nThis is obviously becoming the Go community's way of vendoring code. Recent releases of Godep support this by enabling the environment variable. https://github.com/tools/godep#go-15-vendor-experiment They even have instructions on how to convert.\r\n\r\n- I think for Go 1.4 and up `GO15VENDOREXPERIMENT=1 godep go build` should work even though Go 1.4 has no native support for vendor directories. (Need to verify)\r\n- For Go 1.5 and up `GO15VENDOREXPERIMENT=1 go build` should work.\r\n- For Go 1.6 and up `go build` should work.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/209086646","html_url":"https://github.com/kubernetes/kubernetes/issues/21098#issuecomment-209086646","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21098","id":209086646,"user":{"login":"timothysc","id":169553,"avatar_url":"https://avatars.githubusercontent.com/u/169553?v=3","gravatar_id":"","url":"https://api.github.com/users/timothysc","html_url":"https://github.com/timothysc","followers_url":"https://api.github.com/users/timothysc/followers","following_url":"https://api.github.com/users/timothysc/following{/other_user}","gists_url":"https://api.github.com/users/timothysc/gists{/gist_id}","starred_url":"https://api.github.com/users/timothysc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothysc/subscriptions","organizations_url":"https://api.github.com/users/timothysc/orgs","repos_url":"https://api.github.com/users/timothysc/repos","events_url":"https://api.github.com/users/timothysc/events{/privacy}","received_events_url":"https://api.github.com/users/timothysc/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T20:18:59Z","updated_at":"2016-04-12T20:18:59Z","body":"/cc @eparis "}}