{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/3246","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/3246/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/3246/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/3246/events","html_url":"https://github.com/bazelbuild/bazel/issues/3246","id":237854733,"number":3246,"title":"Toolchains support for Bazel fetch","user":{"login":"katre","id":326527,"avatar_url":"https://avatars1.githubusercontent.com/u/326527?v=4","gravatar_id":"","url":"https://api.github.com/users/katre","html_url":"https://github.com/katre","followers_url":"https://api.github.com/users/katre/followers","following_url":"https://api.github.com/users/katre/following{/other_user}","gists_url":"https://api.github.com/users/katre/gists{/gist_id}","starred_url":"https://api.github.com/users/katre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katre/subscriptions","organizations_url":"https://api.github.com/users/katre/orgs","repos_url":"https://api.github.com/users/katre/repos","events_url":"https://api.github.com/users/katre/events{/privacy}","received_events_url":"https://api.github.com/users/katre/received_events","type":"User","site_admin":false},"labels":[{"id":406295849,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20misc%20native","name":"category: rules > misc native","color":"d4c5f9","default":false},{"id":192364170,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P2","name":"P2","color":"e99695","default":false},{"id":106503261,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20feature%20request","name":"type: feature request","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"katre","id":326527,"avatar_url":"https://avatars1.githubusercontent.com/u/326527?v=4","gravatar_id":"","url":"https://api.github.com/users/katre","html_url":"https://github.com/katre","followers_url":"https://api.github.com/users/katre/followers","following_url":"https://api.github.com/users/katre/following{/other_user}","gists_url":"https://api.github.com/users/katre/gists{/gist_id}","starred_url":"https://api.github.com/users/katre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katre/subscriptions","organizations_url":"https://api.github.com/users/katre/orgs","repos_url":"https://api.github.com/users/katre/repos","events_url":"https://api.github.com/users/katre/events{/privacy}","received_events_url":"https://api.github.com/users/katre/received_events","type":"User","site_admin":false},"assignees":[{"login":"katre","id":326527,"avatar_url":"https://avatars1.githubusercontent.com/u/326527?v=4","gravatar_id":"","url":"https://api.github.com/users/katre","html_url":"https://github.com/katre","followers_url":"https://api.github.com/users/katre/followers","following_url":"https://api.github.com/users/katre/following{/other_user}","gists_url":"https://api.github.com/users/katre/gists{/gist_id}","starred_url":"https://api.github.com/users/katre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katre/subscriptions","organizations_url":"https://api.github.com/users/katre/orgs","repos_url":"https://api.github.com/users/katre/repos","events_url":"https://api.github.com/users/katre/events{/privacy}","received_events_url":"https://api.github.com/users/katre/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-06-22T13:57:33Z","updated_at":"2017-07-25T19:13:42Z","closed_at":null,"body":"As part of the toolchains work (ref #2219), it should be possible to use \"bazel fetch\" to fetch all toolchain-related repositories as well as other fetched repositories.\r\n\r\nOne option is to unconditionally fetch all toolchains, another is to add platform configuration to fetch and only fetch the required toolchains."},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/317842247","html_url":"https://github.com/bazelbuild/bazel/issues/3246#issuecomment-317842247","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/3246","id":317842247,"user":{"login":"katre","id":326527,"avatar_url":"https://avatars1.githubusercontent.com/u/326527?v=4","gravatar_id":"","url":"https://api.github.com/users/katre","html_url":"https://github.com/katre","followers_url":"https://api.github.com/users/katre/followers","following_url":"https://api.github.com/users/katre/following{/other_user}","gists_url":"https://api.github.com/users/katre/gists{/gist_id}","starred_url":"https://api.github.com/users/katre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katre/subscriptions","organizations_url":"https://api.github.com/users/katre/orgs","repos_url":"https://api.github.com/users/katre/repos","events_url":"https://api.github.com/users/katre/events{/privacy}","received_events_url":"https://api.github.com/users/katre/received_events","type":"User","site_admin":false},"created_at":"2017-07-25T19:13:42Z","updated_at":"2017-07-25T19:13:42Z","body":"There are two ways to handle this:\r\n\r\n1. Special case FetchCommand to check a flag and include all registered toolchains in the query used to fetch targets. This is pretty easy to implement but is a bit of a hack on how FetchCommand works\r\n2. Add a flag that causes targets to depend on all toolchains they could possibly use, ignoring constraints, rather than just one. This is much cleaner (since it only pulls in toolchains that could be used by the targets being fetched), but would have impact on rebuilds (since we're changing the actual configured target graph, and would need to invalidate it twice: once before the query, and once after).\r\n\r\nWhat do you think, @kchodorow?"}}
{"actor":{"display_login":"katre"}}