Skip to content

Commit 6485d78

Browse files
committed
Revert no-cache taggings
1 parent ab6b775 commit 6485d78

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

py/private/py_venv/py_venv.bzl

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -414,20 +414,6 @@ def _wrap_with_debug(rule):
414414

415415
return helper
416416

417-
def _wrap_with_no_remote(rule):
418-
"""Mark the venv rules as incompatible with remote exec or cache.
419-
420-
Due to https://github.com/bazelbuild/bazel/issues/27068
421-
"""
422-
423-
def helper(**kwargs):
424-
tags = kwargs.get("tags", [])
425-
tags = sets.to_list(sets.make(tags + ["no-remote", "no-cache"]))
426-
kwargs["tags"] = tags
427-
return rule(**kwargs)
428-
429-
return helper
430-
431417
_py_venv_binary = rule(
432418
doc = """Run a Python program under Bazel using a virtualenv.""",
433419
implementation = _py_venv_binary_impl,
@@ -446,9 +432,9 @@ _py_venv_test = rule(
446432
cfg = py_venv_base.cfg,
447433
)
448434

449-
py_venv = _wrap_with_no_remote(_wrap_with_debug(_py_venv))
450-
py_venv_binary = _wrap_with_no_remote(_wrap_with_debug(_py_venv_binary))
451-
py_venv_test = _wrap_with_no_remote(_wrap_with_debug(_py_venv_test))
435+
py_venv = _wrap_with_debug(_py_venv)
436+
py_venv_binary = _wrap_with_debug(_py_venv_binary)
437+
py_venv_test = _wrap_with_debug(_py_venv_test)
452438

453439
def py_venv_link(venv_name = None, srcs = [], **kwargs):
454440
"""Build a Python virtual environment and produce a script to link it into the build directory."""

0 commit comments

Comments
 (0)