{"push_id":3641606889,"size":1,"distinct_size":1,"ref":"refs/heads/isolate_language_rules","head":"1082ca5c127e6b30b3443cbed6bf8dca27b0fc23","before":"926ba46ce6c54240b045b3486e01a28fad501bf8","commits":[{"sha":"1082ca5c127e6b30b3443cbed6bf8dca27b0fc23","author":{"name":"Jeremy Sharpe","email":"a57c8dcdfa45b90868d49014159ab65e6a44515f@google.com"},"message":"Add a way for users of remote-apis to only require dependencies for the rules of languages they actually use.\n\nWe reuse the solution developed for googleapis, see \"switched_rules_by_language\": https://github.com/googleapis/googleapis/blob/master/repository_rules.bzl\n\nBasically the way this works is that we generate a Bazel repository that wraps the enabled language rules, and implements them as no-ops if they are not specifically enabled.\n\nI've tested with with tools_remote, and builds there now work when this snippet is added to the workspace, even without adding go workspace dependencies:\n\n```\nload(\"@remoteapis//:repository_rules.bzl\", \"switched_rules_by_language\")\nswitched_rules_by_language(\n    name = \"bazel_remote_apis_imports\",\n    java = True,\n)\n```\n\nFixes #78.","distinct":true,"url":"https://api.github.com/repos/jasharpe/remote-apis/commits/1082ca5c127e6b30b3443cbed6bf8dca27b0fc23"}]}
{"actor":{"display_login":"jasharpe"}}