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(internal): add WORKSPACE.bzlmod to ensure dependency separation #1806

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Mar 15, 2024

Before this PR, WORKSPACE file would be also used when using
'rules_python' under bzlmod and when developing locally it would yield
to inconsistent behaviour between the examples and the main workspace.

This PR ensures that the dev_pip is used via bzlmod. Whilst there
may be a little bit of duplication from now on, it ensures that
non-bzlmod code paths do not leak into the bzlmod dev setup.

@aignas aignas marked this pull request as ready for review March 15, 2024 08:25
@aignas aignas requested a review from rickeylev as a code owner March 15, 2024 08:25
Before this PR, WORKSPACE file would be also used when using
'rules_python' under bzlmod and when developing locally it would yield
to inconsistent behaviour between the examples and the main workspace.

This PR ensures that the `dev_pip` is used via `bzlmod`. Whilst there
may be a little bit of duplication from now on, it ensures that
non-bzlmod code paths do not leak into the bzlmod dev setup.
@rickeylev
Copy link
Contributor

Oh wow, how did we not notice this sooner? This would explain a few oddities we've seen. Thanks!

@rickeylev rickeylev added this pull request to the merge queue Mar 21, 2024
Merged via the queue into bazelbuild:main with commit 5ed8d3f Mar 21, 2024
4 checks passed
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