Skip to content

fix(bzlmod): do not fail pip.parse with empty requirements.txt#1718

Merged
aignas merged 6 commits intobazel-contrib:mainfrom
aignas:fix/no-packages
Jan 24, 2024
Merged

fix(bzlmod): do not fail pip.parse with empty requirements.txt#1718
aignas merged 6 commits intobazel-contrib:mainfrom
aignas:fix/no-packages

Conversation

@aignas
Copy link
Copy Markdown
Collaborator

@aignas aignas commented 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 requested a review from rickeylev as a code owner January 24, 2024 00:00
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.

just some small nits, otherwise lgtm

@aignas aignas enabled auto-merge January 24, 2024 12:54
@aignas aignas added this pull request to the merge queue Jan 24, 2024
Merged via the queue into bazel-contrib:main with commit 3730191 Jan 24, 2024
@aignas aignas deleted the fix/no-packages branch January 25, 2024 03:35
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