Skip to content

Commit 2d6e11a

Browse files
committed
fix: use the coverage enabled config setting
1 parent 5fbbf9e commit 2d6e11a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/private/hermetic_runtime_repo_setup.bzl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,11 @@ def define_hermetic_runtime_toolchain_impl(
189189
"micro": str(version_info.patch),
190190
"minor": str(version_info.minor),
191191
},
192-
# Convert empty string to None
193-
coverage_tool = coverage_tool or None,
192+
coverage_tool = select({
193+
# Convert empty string to None
194+
":coverage_enabled": coverage_tool or None,
195+
"//conditions:default": None,
196+
}),
194197
python_version = "PY3",
195198
implementation_name = "cpython",
196199
# See https://peps.python.org/pep-3147/ for pyc tag infix format

0 commit comments

Comments
 (0)