From 23926b00e2b2eb2fc46b17e587cf0c0cfd2f2c4b Mon Sep 17 00:00:00 2001 From: Will Sackfield Date: Tue, 28 Nov 2023 21:57:15 -0800 Subject: [PATCH] Remove local flag. (#63) * Local always results in true. * Unclear why the flag is useful in this case. * Currently impedes builds using bazel RBEs. --- python_configure.bzl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python_configure.bzl b/python_configure.bzl index 8994a22..3cff92d 100644 --- a/python_configure.bzl +++ b/python_configure.bzl @@ -89,7 +89,7 @@ def _read_dir(repository_ctx, src_dir): result = find_result.stdout return result -def _genrule(src_dir, genrule_name, command, outs, local): +def _genrule(src_dir, genrule_name, command, outs): """Returns a string with a genrule. Genrule executes the given command and produces the given outputs. @@ -97,8 +97,7 @@ def _genrule(src_dir, genrule_name, command, outs, local): return ( "genrule(\n" + ' name = "' + - genrule_name + '",\n' + ( - " local = 1,\n" if local else "") + + genrule_name + '",\n' + " outs = [\n" + outs + "\n ],\n" + @@ -152,7 +151,6 @@ def _symlink_genrule_for_dir( genrule_name, " && ".join(command), "\n".join(outs), - local = True, ) return genrule