Skip to content

fix(pypi): pass the correct versions to get_index_urls to write all facts that we need#3758

Open
aignas wants to merge 4 commits intobazel-contrib:mainfrom
aignas:aignas.fix.fetch-all-irrespective-of-markers
Open

fix(pypi): pass the correct versions to get_index_urls to write all facts that we need#3758
aignas wants to merge 4 commits intobazel-contrib:mainfrom
aignas:aignas.fix.fetch-all-irrespective-of-markers

Conversation

@aignas
Copy link
Copy Markdown
Collaborator

@aignas aignas commented May 8, 2026

Fix the versions of packages that we are recording to a MODULE.bazel.lock
file facts by passing all of the versions to the get_index function.

Summary:

  • test: add a failing test
  • fix: pass all distributions to get_index
  • doc: changelog

Fixes #3756

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request ensures that all package versions from requirement files are recorded in the lock file, regardless of platform markers, by moving the distribution collection logic in parse_requirements.bzl. It also adds a regression test and updates the changelog for version 2.0.1. Feedback suggests optimizing the new collection logic to avoid redundant processing and to only run when an index query is necessary.

Comment thread python/private/pypi/parse_requirements.bzl Outdated
@aignas aignas mentioned this pull request May 8, 2026
@rickeylev rickeylev added this pull request to the merge queue May 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 8, 2026
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.

The MODULE.bazel.lock is different on Mac/Linux in 2.0.0

2 participants