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: don't merge sources into config #7560

Merged

Conversation

radoering
Copy link
Member

Fixes a bug introduced via 55127c8 in #6205. Merging the sources from pyproject.toml into the global configuration implicitly allows to define sources globally (in an unintuitive way, but nevertheless...), which was surely not intended.

Instead of merging sources into the global config and creating a new repository pool for each install of an sdist from the global config, we can just reuse the pool passed to the executor. This should be a minor performance improvement.

@radoering radoering force-pushed the keep-config-and-sources-separated branch from bcb9bda to 3ea0a49 Compare February 26, 2023 06:35
@radoering
Copy link
Member Author

I added a test that fails without this fix. (That's how I noticed the issue in the first place.)

@radoering radoering requested a review from a team February 27, 2023 04:53
@radoering radoering merged commit b6fb3a3 into python-poetry:master Feb 27, 2023
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
@radoering radoering deleted the keep-config-and-sources-separated branch November 24, 2024 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants