{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/serf/issues/386","repository_url":"https://api.github.com/repos/hashicorp/serf","labels_url":"https://api.github.com/repos/hashicorp/serf/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/serf/issues/386/comments","events_url":"https://api.github.com/repos/hashicorp/serf/issues/386/events","html_url":"https://github.com/hashicorp/serf/issues/386","id":145379030,"number":386,"title":"vendoring member list makes serf useless as a library.","user":{"login":"james-lawrence","id":2835871,"avatar_url":"https://avatars.githubusercontent.com/u/2835871?v=3","gravatar_id":"","url":"https://api.github.com/users/james-lawrence","html_url":"https://github.com/james-lawrence","followers_url":"https://api.github.com/users/james-lawrence/followers","following_url":"https://api.github.com/users/james-lawrence/following{/other_user}","gists_url":"https://api.github.com/users/james-lawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/james-lawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-lawrence/subscriptions","organizations_url":"https://api.github.com/users/james-lawrence/orgs","repos_url":"https://api.github.com/users/james-lawrence/repos","events_url":"https://api.github.com/users/james-lawrence/events{/privacy}","received_events_url":"https://api.github.com/users/james-lawrence/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-02T14:34:21Z","updated_at":"2016-04-04T17:39:32Z","closed_at":null,"body":"take for the following code example:\r\n```go\r\nimport (\r\n       \"log\"\r\n\r\n\t\"github.com/hashicorp/serf/serf\"\r\n\t\"github.com/hashicorp/serf/vendor/github.com/hashicorp/memberlist\"\r\n)\r\ntype filter struct{}\r\n\r\nfunc (t filter) NotifyAlive(peer *memberlist.Node) error {\r\n\tlog.Println(peer.Name, peer.Addr.String(), int(peer.Port))\r\n\treturn nil\r\n}\r\n\r\nfunc NewClusterOptions(nodeID, addr string, port int) Options {\r\n\tevents := make(chan serf.Event)\r\n\tconfig := serf.DefaultConfig()\r\n\tconfig.MemberlistConfig = memberlist.DefaultWANConfig()\r\n\tconfig.MemberlistConfig.Alive = filter{}\r\n\tconfig.MemberlistConfig.BindAddr = addr\r\n\tconfig.MemberlistConfig.BindPort = port\r\n\r\n\tif nodeID != \"\" {\r\n\t\tconfig.NodeName = nodeID\r\n\t}\r\n\r\n\treturn Options{\r\n\t\tConfig:  config,\r\n\t\tEventCh: events,\r\n\t}\r\n}\r\n\r\n// Options holds the options for the cluster.\r\ntype Options struct {\r\n\t*serf.Config\r\n\tEventCh chan serf.Event\r\n}\r\n```\r\n\r\nis code fails to compile because you can't import a packages vendored package. but if you try to import memberlist as a normal package:\r\n```go\r\nimport (\r\n\"github.com/hashicorp/memberlist\"\r\n)\r\n```\r\ngo complains about mismatched types."},"comment":{"url":"https://api.github.com/repos/hashicorp/serf/issues/comments/205409512","html_url":"https://github.com/hashicorp/serf/issues/386#issuecomment-205409512","issue_url":"https://api.github.com/repos/hashicorp/serf/issues/386","id":205409512,"user":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T17:39:32Z","updated_at":"2016-04-04T17:39:32Z","body":"Sorry that still won't fix it - just ran a local test from @sean-. Sorry about that."}}