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

Force reload config before creating monorepo poetry objects #24

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

ag14774
Copy link
Owner

@ag14774 ag14774 commented Oct 31, 2024

After investigation, it seems that the global config object poetry.config.config._default_config is cached globally and therefore settings from subproject-local poetry.toml files persist when creating a new Poetry object using:

monorepo_root_poetry = Factory().create_poetry(cwd=monorepo_root, io=io, disable_cache=poetry.disable_cache)

Solution is to first reload the global config before creating the new monorepo Poetry object

@ag14774 ag14774 linked an issue Oct 31, 2024 that may be closed by this pull request
@ag14774 ag14774 merged commit f41ca74 into main Oct 31, 2024
11 checks passed
@ag14774 ag14774 deleted the fix-config-not-loading branch October 31, 2024 15:51
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.

poetry install not creating venv if one does not exist
1 participant