blob: 43f0c0d596355369ab3370ec038b21611b35bf9f [file] [log] [blame]
rule_info {
rule_name: "my_repo"
doc_string: "Minimal example of a repository rule."
attribute {
name: "name"
doc_string: "A unique name for this repository."
type: NAME
mandatory: true
}
attribute {
name: "repo_mapping"
doc_string: "A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.<p>For example, an entry `\"@foo\": \"@bar\"` declares that, for any time this repository depends on `@foo` (such as a dependency on `@foo//some:target`, it should actually resolve that dependency within globally-declared `@bar` (`@bar//some:target`)."
type: STRING_DICT
mandatory: true
}
attribute {
name: "useless"
doc_string: "This argument will be ignored. You don\'t have to specify it, but you may."
type: STRING
default_value: "\"ignoreme\""
}
}