File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments