1# buildifier: disable=module-docstring 2def _repo_rule_impl(ctx): 3 ctx.file("BUILD", "") 4 5my_repo = repository_rule( 6 implementation = _repo_rule_impl, 7 doc = "Minimal example of a repository rule.", 8 attrs = { 9 "useless": attr.string( 10 doc = "This argument will be ingored. You don't have to specify it, but you may.", 11 default = "ignoreme", 12 ), 13 }, 14) 15