Skip to content

Commit

Permalink
Removes trailing spaces in label.bzl.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgp1130 committed Aug 1, 2023
1 parent e87c36d commit 2bdd87e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/label.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ def absolute(
deps = ["%s_sibling" % absolute(dep) for dep in deps],
)
```
Args:
target: A label string which may be relative or absolute.
repository_name: Function which returns the repository name. Used for
tests only, should not be set in production code.
package_name: Function which returns the package name. Used for tests
only, should not be set in production code.
Returns: The absolute path to the provided target. If the target is
relative, then it is interpretted as relative to the current package as
determined by `native.repository_name()` and `native.package_name()`.
Expand All @@ -57,7 +57,7 @@ def file_path_of(lbl):
Example:
`//path/to/internal/pkg:target` => `./path/to/internal/pkg/target`
`@wksp//path/to/external/pkg:target` => `../wksp/path/to/external/pkg/target`
Note the leading `../` for external packages, meaning they will resolve
correctly from the `execroot/__main__/` directory most actions use as the
current working directory by default.
Expand All @@ -75,7 +75,7 @@ def file_path_of(lbl):

def rel_path(file_path, package_name = native.package_name):
"""Converts a workspace-relative absolute path to a relative path.
Args:
file_path: Absolute file path from workspace root.
package_name: Function which returns the package name. Used for tests
Expand Down

0 comments on commit 2bdd87e

Please sign in to comment.