unplugged-system/external/stardoc/test/testdata/repo_rules_test/golden.md

1.3 KiB
Executable File

my_repo

my_repo(name, repo_mapping, useless)

Minimal example of a repository rule.

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this repository. Name required
repo_mapping 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). Dictionary: String -> String required
useless This argument will be ingored. You don't have to specify it, but you may. String optional "ignoreme"