summaryrefslogtreecommitdiff
path: root/kleaf/bazel.py
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2023-04-18 19:24:39 +0000
committerYifan Hong <elsk@google.com>2023-04-19 23:50:15 +0000
commit067b2e10a1010789a732f5dad5b7e28031cb4480 (patch)
tree6ed1bb69575167498d9048ddd19b856da6228312 /kleaf/bazel.py
parent913e22036529096cca91d92e6993f73ad0d3c8f9 (diff)
downloadbuild-067b2e10a1010789a732f5dad5b7e28031cb4480.tar.gz
Revert "kleaf: Add --repo_prop argument to bazel wrapper."
This reverts commit c091a2bc022091653c2bebdbee655c59b691b26e. Reason for revert: the repo.prop file in build bots contains $REPO_NAME not $REPO_PATH. Change-Id: I33792d267d4065fbe26fbe8be37f1fc20bb5064c
Diffstat (limited to 'kleaf/bazel.py')
-rwxr-xr-xkleaf/bazel.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/kleaf/bazel.py b/kleaf/bazel.py
index 0f9e622..30bbdef 100755
--- a/kleaf/bazel.py
+++ b/kleaf/bazel.py
@@ -138,13 +138,6 @@ class BazelWrapper(object):
parser.add_argument("--cache_dir",
type=_require_absolute_path,
default=absolute_cache_dir)
- parser.add_argument(
- "--repo_prop",
- help="""Absolute path to repo.prop file, generated with """
- """`repo forall -c 'echo "$REPO_PATH $REPO_LREV"'`""",
- type=_require_absolute_path,
- default=None,
- )
# known_args: List of arguments known by this bazel wrapper. These
# are stripped from the final bazel invocation.
@@ -175,9 +168,6 @@ class BazelWrapper(object):
if self.known_args.make_jobs is not None:
self.env["KLEAF_MAKE_JOBS"] = str(self.known_args.make_jobs)
- if self.known_args.repo_prop is not None:
- self.env["KLEAF_REPO_PROP"] = self.known_args.repo_prop
-
cache_dir_bazel_rc = f"{self.absolute_out_dir}/bazel/cache_dir.bazelrc"
os.makedirs(os.path.dirname(cache_dir_bazel_rc), exist_ok=True)
with open(cache_dir_bazel_rc, "w") as f: