# repository_rule

{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryModule.java" %} {% dynamic setvar version "7.0.0" %} {% dynamic setvar original_path "/rules/lib/builtins/repository_rule" %} {% include "_buttons.html" %} A callable value that may be invoked during evaluation of the WORKSPACE file or within the implementation function of a module extension to instantiate and return a repository rule.