{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/rules_go/issues/188","repository_url":"https://api.github.com/repos/bazelbuild/rules_go","labels_url":"https://api.github.com/repos/bazelbuild/rules_go/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/rules_go/issues/188/comments","events_url":"https://api.github.com/repos/bazelbuild/rules_go/issues/188/events","html_url":"https://github.com/bazelbuild/rules_go/issues/188","id":187430249,"number":188,"title":"Support subpackages in `new_go_repository`","user":{"login":"kerinin","id":161938,"avatar_url":"https://avatars.githubusercontent.com/u/161938?v=3","gravatar_id":"","url":"https://api.github.com/users/kerinin","html_url":"https://github.com/kerinin","followers_url":"https://api.github.com/users/kerinin/followers","following_url":"https://api.github.com/users/kerinin/following{/other_user}","gists_url":"https://api.github.com/users/kerinin/gists{/gist_id}","starred_url":"https://api.github.com/users/kerinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerinin/subscriptions","organizations_url":"https://api.github.com/users/kerinin/orgs","repos_url":"https://api.github.com/users/kerinin/repos","events_url":"https://api.github.com/users/kerinin/events{/privacy}","received_events_url":"https://api.github.com/users/kerinin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T20:25:41Z","updated_at":"2016-11-07T17:03:08Z","closed_at":"2016-11-07T16:02:46Z","body":"In many cases the import path and the source repository is not the same, for instance \r\n\r\n* `github.com/golang/protobuf/proto`\r\n* `golang.org/x/net/context`\r\n* `golang.org/x/net/http2`\r\n* `golang.org/x/text/encoding`\r\n* `google.golang.org/grpc/credentials`\r\n\r\nAdding one of these with `new_go_repository` currently causes an error:\r\n\r\n```\r\nERROR: .../BUILD:3:1: no such package '@x_net_context//': Traceback (most recent call last):\r\n\tFile \"/private/var/tmp/_bazel_rmichael/c50984a7f41b3a8568653b89ff33eb26/external/io_bazel_rules_go/go/private/go_repository.bzl\", line 40\r\n\t\t_go_repository_impl(ctx)\r\n\tFile \"/private/var/tmp/_bazel_rmichael/c50984a7f41b3a8568653b89ff33eb26/external/io_bazel_rules_go/go/private/go_repository.bzl\", line 36, in _go_repository_impl\r\n\t\tfail(\"failed to fetch %s: %s\" % (ctx....))\r\nfailed to fetch golang.org/x/net/context: 2016/11/04 14:54:35 get \"golang.org/x/net/context\": found meta tag vcs.metaImport{Prefix:\"golang.org/x/net\", VCS:\"git\", RepoRoot:\"https://go.googlesource.com/net\"} at https://golang.org/x/net/context?go-get=1\r\n2016/11/04 14:54:35 get \"golang.org/x/net/context\": verifying non-authoritative meta tag\r\n2016/11/04 14:54:35 not a root of a repository: golang.org/x/net/context\r\n and referenced by '//lib/cntx:go_default_library'.\r\nERROR: Analysis of target '//lib/cntx:go_default_library' failed; build aborted.\r\nINFO: Elapsed time: 1.620s\r\n```"},"comment":{"url":"https://api.github.com/repos/bazelbuild/rules_go/issues/comments/258895170","html_url":"https://github.com/bazelbuild/rules_go/issues/188#issuecomment-258895170","issue_url":"https://api.github.com/repos/bazelbuild/rules_go/issues/188","id":258895170,"user":{"login":"kerinin","id":161938,"avatar_url":"https://avatars.githubusercontent.com/u/161938?v=3","gravatar_id":"","url":"https://api.github.com/users/kerinin","html_url":"https://github.com/kerinin","followers_url":"https://api.github.com/users/kerinin/followers","following_url":"https://api.github.com/users/kerinin/following{/other_user}","gists_url":"https://api.github.com/users/kerinin/gists{/gist_id}","starred_url":"https://api.github.com/users/kerinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerinin/subscriptions","organizations_url":"https://api.github.com/users/kerinin/orgs","repos_url":"https://api.github.com/users/kerinin/repos","events_url":"https://api.github.com/users/kerinin/events{/privacy}","received_events_url":"https://api.github.com/users/kerinin/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T17:03:08Z","updated_at":"2016-11-07T17:03:08Z","body":"Thank you!  I think the part that was unclear was the subpackage import syntax (`..//context:go_default_library`)"}}
{"actor":{"display_login":"kerinin"}}