Skip to content

fix(internal): add WORKSPACE.bzlmod to ensure dependency separation#1806

Merged
rickeylev merged 4 commits intobazel-contrib:mainfrom
aignas:fix/workspace-bzlmod
Mar 21, 2024
Merged

fix(internal): add WORKSPACE.bzlmod to ensure dependency separation#1806
rickeylev merged 4 commits intobazel-contrib:mainfrom
aignas:fix/workspace-bzlmod

Conversation

@aignas
Copy link
Copy Markdown
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.
@aignas aignas force-pushed the fix/workspace-bzlmod branch from e0c35b2 to a6c7c82 Compare March 17, 2024 09:00
@aignas aignas force-pushed the fix/workspace-bzlmod branch from 675e859 to effd851 Compare March 17, 2024 09:26
@rickeylev
Copy link
Copy Markdown
Collaborator

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 bazel-contrib:main with commit 5ed8d3f Mar 21, 2024
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