rlocationpath in the form of $REPO/package/file where $REPO should be the apparent repository name.
Most runfiles libraries (see below) support functionality to determine the repository of the currently executed target which is useful to refer to other files in the same repository.
Many Bazel rules support Make Variables to translate from a target to an rlocationpath by using the $(rlocationpath //package:target) notation.
Examples:
- C++
- Golang
- Python
- Shell