{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/client-go/issues/67","repository_url":"https://api.github.com/repos/kubernetes/client-go","labels_url":"https://api.github.com/repos/kubernetes/client-go/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/client-go/issues/67/comments","events_url":"https://api.github.com/repos/kubernetes/client-go/issues/67/events","html_url":"https://github.com/kubernetes/client-go/issues/67","id":200987792,"number":67,"title":"Cannot use GetOptions{}?","user":{"login":"rubenv","id":42904,"avatar_url":"https://avatars.githubusercontent.com/u/42904?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenv","html_url":"https://github.com/rubenv","followers_url":"https://api.github.com/users/rubenv/followers","following_url":"https://api.github.com/users/rubenv/following{/other_user}","gists_url":"https://api.github.com/users/rubenv/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenv/subscriptions","organizations_url":"https://api.github.com/users/rubenv/orgs","repos_url":"https://api.github.com/users/rubenv/repos","events_url":"https://api.github.com/users/rubenv/events{/privacy}","received_events_url":"https://api.github.com/users/rubenv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-16T10:55:32Z","updated_at":"2017-01-16T10:55:32Z","closed_at":null,"body":"I'm having code like this:\r\n\r\n```go\r\n_, err = nsClient.Get(t.namespace, meta_v1.GetOptions{})\r\n```\r\n\r\nWhere `nsClient` is a `v1.NamespaceInterface`.\r\n\r\nThis defines the `Get()` method as follows:\r\n\r\n```go\r\nGet(name string, options meta_v1.GetOptions) (*v1.Namespace, error)\r\n```\r\n\r\nSadly `meta_v1` is a vendored package:\r\n\r\n```go\r\nmeta_v1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\r\n```\r\n\r\nIf I refer to `GetOptions()` in my code directly, by adding the same import, I get the following:\r\n\r\n```\r\n./targets.go:138: cannot use \"k8s.io/apimachinery/pkg/apis/meta/v1\".GetOptions\r\n literal (type \"k8s.io/apimachinery/pkg/apis/meta/v1\".GetOptions) as type\r\n \"k8s.io/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1\".GetOptions\r\n in argument to nsClient.Get\r\n```\r\n\r\nWhereas when I try to refer to the vendored package, I get the (correct) error:\r\n\r\n```\r\npackage github.com/rubenv/kube-appdeploy\r\n        imports k8s.io/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1:\r\n        use of vendored package not allowed\r\n```\r\n\r\nHow on earth is one supposed to use this library?"}}
{"actor":{"display_login":"rubenv"}}