Skip to content

Commit 6388c8a

Browse files
authored
Fixed buildifier defects (#621)
1 parent 46bab13 commit 6388c8a

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

python/pip_install/pip_repository.bzl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ def _pip_repository_impl(rctx):
133133
annotations_file = rctx.path("annotations.json")
134134
rctx.file(annotations_file, json.encode_indent(annotations, indent = " " * 4))
135135

136-
pypath = _construct_pypath(rctx)
137-
138136
if rctx.attr.incremental:
139137
args = [
140138
python_interpreter,
@@ -339,8 +337,6 @@ py_binary(
339337
def _whl_library_impl(rctx):
340338
python_interpreter = _resolve_python_interpreter(rctx)
341339

342-
# pointer to parent repo so these rules rerun if the definitions in requirements.bzl change.
343-
_parent_repo_label = Label("@{parent}//:requirements.bzl".format(parent = rctx.attr.repo))
344340
args = [
345341
python_interpreter,
346342
"-m",

tools/bazel_integration_test/bazel_integration_test.bzl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ Note that if a command contains a bare `--` argument, the --test_arg passed to B
2424
),
2525
}
2626

27-
# Avoid using non-normalized paths (workspace/../other_workspace/path)
28-
def _to_manifest_path(ctx, file):
29-
if file.short_path.startswith("../"):
30-
return file.short_path[3:]
31-
else:
32-
return ctx.workspace_name + "/" + file.short_path
33-
3427
def _config_impl(ctx):
3528
if len(SUPPORTED_BAZEL_VERSIONS) > 1:
3629
fail("""

0 commit comments

Comments
 (0)