Skip to content

Commit a9e4e83

Browse files
committed
add a note
1 parent 881e6bf commit a9e4e83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/private/pypi/whl_library.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ def _whl_library_impl(rctx):
369369
timeout = rctx.attr.timeout,
370370
)
371371

372-
if rp_config.enable_pipstar:
372+
# NOTE @aignas 2025-09-28: if someone has an old vendored file that does not have the
373+
# dep_template set or the packages is not set either, we should still not break, best to
374+
# disable pipstar for that particular case.
375+
if rp_config.enable_pipstar and (rctx.dep_template or rctx.packages):
373376
pypi_repo_utils.execute_checked(
374377
rctx,
375378
op = "whl_library.ExtractWheel({}, {})".format(rctx.attr.name, whl_path),

0 commit comments

Comments
 (0)