Skip to content

fix: Handle the empty whl_map correctly#1623

Closed
kshramt wants to merge 1 commit intobazel-contrib:mainfrom
kshramt:empty_whl_map
Closed

fix: Handle the empty whl_map correctly#1623
kshramt wants to merge 1 commit intobazel-contrib:mainfrom
kshramt:empty_whl_map

Conversation

@kshramt
Copy link
Copy Markdown

@kshramt kshramt commented Dec 17, 2023

No description provided.

@kshramt kshramt requested a review from rickeylev as a code owner December 17, 2023 17:16
@google-cla
Copy link
Copy Markdown

google-cla bot commented Dec 17, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Copy Markdown
Collaborator

@rickeylev rickeylev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it looks like the bug is bzl_packages can be None, which then the for-loop tries to iterate over? Thanks for finding this.

Can you update the description to describe the bug and fix, please? A test can be added to tests/pip_hub_repository/render_pkg_aliases/render_pkg_aliases_test.bzl

github-merge-queue bot pushed a commit that referenced this pull request Jan 24, 2024
With this change we handle correctly the case where the requirements.txt
might be empty (e.g. during onboarding to `rules_python`). I have added
an integration test because this usecase seems important enough to be
covered
to ensure that we have no regressions. It also creates a place to add
more
`pip.parse` and `pip_parse` tests.

Closes #1623.
@aignas aignas closed this in #1718 Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants