Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle the empty whl_map correctly #1623

Closed
wants to merge 1 commit into from

Conversation

kshramt
Copy link

@kshramt kshramt commented Dec 17, 2023

No description provided.

Copy link

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
Contributor

@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