Public API ## relative_file
relative_file(to_file, frm_file)
Resolves a relative path between two files, "to_file" and "frm_file", they must share the same root **PARAMETERS** | Name | Description | Default Value | | :------------- | :------------- | :------------- | | to_file | the path with file name to resolve to, from frm | none | | frm_file | the path with file name to resolve from | none | **RETURNS** The relative path from frm_file to to_file, including the file name ## to_manifest_path
to_manifest_path(ctx, file)
The runfiles manifest entry for a file We must avoid using non-normalized paths (workspace/../other_workspace/path) in order to locate entries by their key. **PARAMETERS** | Name | Description | Default Value | | :------------- | :------------- | :------------- | | ctx | starlark rule execution context | none | | file | a File object | none | **RETURNS** a key that can lookup the path from the runfiles manifest