Skip to content

Commit e096244

Browse files
committed
fixup
1 parent a9e4e83 commit e096244

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

python/private/pypi/whl_library.bzl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def _whl_library_impl(rctx):
372372
# NOTE @aignas 2025-09-28: if someone has an old vendored file that does not have the
373373
# dep_template set or the packages is not set either, we should still not break, best to
374374
# disable pipstar for that particular case.
375-
if rp_config.enable_pipstar and (rctx.dep_template or rctx.packages):
375+
if rp_config.enable_pipstar and (rctx.attr.dep_template or rctx.attr.packages):
376376
pypi_repo_utils.execute_checked(
377377
rctx,
378378
op = "whl_library.ExtractWheel({}, {})".format(rctx.attr.name, whl_path),
@@ -422,12 +422,10 @@ def _whl_library_impl(rctx):
422422
logger = logger,
423423
)
424424

425-
dep_template = rctx.attr.dep_template
426-
427425
build_file_contents = generate_whl_library_build_bazel(
428426
name = whl_path.basename,
429427
sdist_filename = sdist_filename,
430-
dep_template = dep_template or "@{}{{name}}//:{{target}}".format(
428+
dep_template = rctx.attr.dep_template or "@{}{{name}}//:{{target}}".format(
431429
rctx.attr.repo_prefix,
432430
),
433431
packages = rctx.attr.packages,

0 commit comments

Comments
 (0)