You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(bzlmod): cross-platform builds without experimental_index_url (bazel-contrib#2325)
With this change we finally generate the same lock file within the
legacy code `pip.parse` code path and it allows to slowly transition to
using the new code path as much as possible without user doing anything.
This moves the selection of the host-compatible lock file from the
extension evaluation to the build phase - note, we will generate extra
repositories here which might not work on the host platform, however, if
the users are consuming the `whl_library` repos through the hub repo
only, then everything should work. A known issue is that it may break
`bazel query` and in these usecases it is advisable to use `cquery`
until we have `sdist` cross-building from source fully working.
Summary:
- feat: reuse the `render_pkg_aliases` for when filename is not known
but platform is known
- feat: support generating the extra config settings required
- feat: `get_whl_flag_versions` now generates extra args for the rules
- feat: make lock file generation the same irrespective of the host
platform
- test: add an extra test with multiple requirements files
- feat: support cross-platform builds using `download_only = True` in
legacy setups
Note, that users depending on the naming of the whl libraries will need
to start using `extra_hub_aliases` attribute instead to keep their
setups not relying on this implementation detail.
Fixesbazel-contrib#2268
Work towards bazel-contrib#260
---------
Co-authored-by: Richard Levasseur <richardlev@gmail.com>
0 commit comments