From 70047c37a4ca9ca84dcddc6e740b98a6399d3c0a Mon Sep 17 00:00:00 2001 From: Will Sackfield Date: Sun, 26 Nov 2023 19:15:38 -0500 Subject: [PATCH] Remove local flag. * 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