{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11311","labels_url":"https://api.github.com/repos/golang/go/issues/11311/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11311/comments","events_url":"https://api.github.com/repos/golang/go/issues/11311/events","html_url":"https://github.com/golang/go/issues/11311","id":89835154,"number":11311,"title":"x/mobile/cmd/gomobile: -o flag must represent an output directory","user":{"login":"rakyll","id":108380,"avatar_url":"https://avatars.githubusercontent.com/u/108380?v=3","gravatar_id":"","url":"https://api.github.com/users/rakyll","html_url":"https://github.com/rakyll","followers_url":"https://api.github.com/users/rakyll/followers","following_url":"https://api.github.com/users/rakyll/following{/other_user}","gists_url":"https://api.github.com/users/rakyll/gists{/gist_id}","starred_url":"https://api.github.com/users/rakyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakyll/subscriptions","organizations_url":"https://api.github.com/users/rakyll/orgs","repos_url":"https://api.github.com/users/rakyll/repos","events_url":"https://api.github.com/users/rakyll/events{/privacy}","received_events_url":"https://api.github.com/users/rakyll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/1","html_url":"https://github.com/golang/go/milestones/Go1.5","labels_url":"https://api.github.com/repos/golang/go/milestones/1/labels","id":905105,"number":1,"title":"Go1.5","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":235,"closed_issues":694,"state":"open","created_at":"2014-12-16T02:26:41Z","updated_at":"2015-06-22T10:11:16Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-20T23:30:28Z","updated_at":"2015-06-22T10:14:48Z","closed_at":null,"body":"gomobile build will be supporting iOS builds soon, and this change will require a significant change in the tool. The -o is used to be a filename of the final output file.\r\n\r\n```\r\ngomobile build -o /path/to/example.apk .\r\ngomobile build -o /path/to/example.aar .\r\n```\r\n\r\nWith the merge of the iOS build support, we will building both an apk and app file if the source package is a main package. So, the -o flag must represent an output directory, so the tool can output both files.\r\n\r\ncc/ @crawshaw @hyangah "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/114058145","html_url":"https://github.com/golang/go/issues/11311#issuecomment-114058145","issue_url":"https://api.github.com/repos/golang/go/issues/11311","id":114058145,"user":{"login":"crawshaw","id":161319,"avatar_url":"https://avatars.githubusercontent.com/u/161319?v=3","gravatar_id":"","url":"https://api.github.com/users/crawshaw","html_url":"https://github.com/crawshaw","followers_url":"https://api.github.com/users/crawshaw/followers","following_url":"https://api.github.com/users/crawshaw/following{/other_user}","gists_url":"https://api.github.com/users/crawshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/crawshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawshaw/subscriptions","organizations_url":"https://api.github.com/users/crawshaw/orgs","repos_url":"https://api.github.com/users/crawshaw/repos","events_url":"https://api.github.com/users/crawshaw/events{/privacy}","received_events_url":"https://api.github.com/users/crawshaw/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T10:14:48Z","updated_at":"2015-06-22T10:14:48Z","body":"With the new -target flag I'm trialling a semantics change, so the tool only builds for one platform at a time.\r\n\r\nThat said, I'm still trying to work out what to do with the header file for gomobile bind."}}