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

Create member pyproject.toml prior to workspace discovery #5317

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jul 22, 2024

Summary

Otherwise, if the path is already a member, discovery fails.

Also adds a failing test for "adding members that are already covered by members".

@charliermarsh charliermarsh added the bug Something isn't working label Jul 22, 2024
@charliermarsh charliermarsh changed the title Avoid creating init directory prior to workspace discovery Create member pyproject.toml prior to workspace discovery Jul 22, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) July 22, 2024 23:55
assert_snapshot!(
workspace, @r###"
[tool.uv.workspace]
members = ['packages/*', "packages/foo"]
Copy link
Member

Choose a reason for hiding this comment

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

To clarify, we want to add a specific entry even though it's already covered?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope! That's a bug. Already exists prior to this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

(I'm already fixing it separately, it's how I discovered the bug fixed in this PR.)

@charliermarsh charliermarsh merged commit 13dd885 into main Jul 23, 2024
54 checks passed
@charliermarsh charliermarsh deleted the charlie/add branch July 23, 2024 00:03
@charliermarsh charliermarsh added the preview Experimental behavior label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants