{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2417","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2417/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2417/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2417/events","html_url":"https://github.com/lxc/lxd/issues/2417","id":178689488,"number":2417,"title":"LXD Go client API requires Cgo components","user":{"login":"zenitraM","id":863975,"avatar_url":"https://avatars.githubusercontent.com/u/863975?v=3","gravatar_id":"","url":"https://api.github.com/users/zenitraM","html_url":"https://github.com/zenitraM","followers_url":"https://api.github.com/users/zenitraM/followers","following_url":"https://api.github.com/users/zenitraM/following{/other_user}","gists_url":"https://api.github.com/users/zenitraM/gists{/gist_id}","starred_url":"https://api.github.com/users/zenitraM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenitraM/subscriptions","organizations_url":"https://api.github.com/users/zenitraM/orgs","repos_url":"https://api.github.com/users/zenitraM/repos","events_url":"https://api.github.com/users/zenitraM/events{/privacy}","received_events_url":"https://api.github.com/users/zenitraM/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-22T18:44:59Z","updated_at":"2016-09-23T21:05:18Z","closed_at":"2016-09-23T21:05:18Z","body":"Doing just `GOOS=linux GOARCH=amd64 go build` from OSX to Linux from an app that has an import to \"github.com/lxc/lxd\" to use the Client API:\r\n\r\n```\r\n# github.com/lxc/lxd/shared\r\n../../lxc/lxd/shared/idmapset_linux.go:221: undefined: GetFileStat\r\n../../lxc/lxd/shared/idmapset_linux.go:248: undefined: ShiftOwner\r\n```\r\n\r\nThis seems to be due to the usage of a cgo library that cannot be cross-compiled from OSX, and that doesn't seem related to the client but rather to the LXD daemon itself.\r\n\r\nMaybe the client / client libraries should be on a separate package to allow importing them without dragging the rest of the daemon.\r\n\r\n(Probably related to #1926?)"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/249302164","html_url":"https://github.com/lxc/lxd/issues/2417#issuecomment-249302164","issue_url":"https://api.github.com/repos/lxc/lxd/issues/2417","id":249302164,"user":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T21:05:18Z","updated_at":"2016-09-23T21:05:18Z","body":"I added a note to #1926 that we should keep outside dependencies to a minimum, so considering this issue a duplicate of that now. This will be addressed when we publish a proper client library for downstreams."}}
{"actor":{"display_login":"stgraber"}}