Skip to content

chore: have no-matching-distribution error message hint about target_platforms vs requirements_by_platform#3701

Merged
aignas merged 3 commits intobazel-contrib:mainfrom
rickeylev:pypi.cross.build.hint
Apr 14, 2026
Merged

chore: have no-matching-distribution error message hint about target_platforms vs requirements_by_platform#3701
aignas merged 3 commits intobazel-contrib:mainfrom
rickeylev:pypi.cross.build.hint

Conversation

@rickeylev
Copy link
Copy Markdown
Collaborator

Based on the slack discussion where a cross-build was failing because
requirements_by_platform was set, but target_platforms wasn't
set, have the error message hint at the distinction to better point
users for how to fix it.

@rickeylev rickeylev requested review from aignas and groodt as code owners April 13, 2026 05:02
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 updates the documentation in pkg_aliases.bzl to clarify the relationship between pip.parse.target_platforms and requirements_by_platform. The review feedback suggests refining the technical accuracy of the statement regarding host platform effects and using standard Bazel terminology by replacing 'settings' with 'attribute'.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
@rickeylev rickeylev enabled auto-merge April 13, 2026 05:21
@aignas aignas disabled auto-merge April 14, 2026 02:26
@aignas aignas merged commit 6e72de2 into bazel-contrib:main Apr 14, 2026
3 of 4 checks passed
@aignas aignas mentioned this pull request Apr 14, 2026
9 tasks
rickeylev added a commit to rickeylev/rules_python that referenced this pull request Apr 14, 2026
…platforms vs requirements_by_platform (bazel-contrib#3701)

Based on the slack discussion where a cross-build was failing because
`requirements_by_platform` was set, but `target_platforms` wasn't
set, have the error message hint at the distinction to better point
users for how to fix it.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
(cherry picked from commit 6e72de2)
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