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(nx-python): replace poetry update with poetry lock and poetry install when adding a new package #243

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

lucasvieirasilva
Copy link
Owner

Current Behavior

currently, when there are more than 2 levels of local project dependencies, when a dependency is added to the 2 levels or deeper the nx python plugin uses poetry update <lib> to update to keep all the poetry.lock in sync.

however, the poetry update only works well for the first level, for all the others the poetry lock is not updated correctly.

Expected Behavior

the combination of poetry lock and only running poetry install when the root pyproject.toml is not present, updates the poetry.lock for all the levels of dependencies.

…tall when adding a new package

currently, when there are more than 2 levels of local projects dependencies,
when a dependency is added to the 2 level or deeper the nx python plugin uses
poetry update <lib> to update to keep all the poetry.lock in sync.

however, the poetry update only works well for the first level, for all the others
the poetry lock is not updated correctly.

the combination of poetry lock and only running poetry install when the root pyproject.toml
is not present, updates the poetry.lock for all the levels of dependencies.
@lucasvieirasilva lucasvieirasilva merged commit b311fcb into main Aug 9, 2024
2 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 9, 2024
## [19.0.1](nx-python-v19.0.0...nx-python-v19.0.1) (2024-08-09)

### Bug Fixes

* **nx-python:** replace poetry update with poetry lock and poetry install when adding a new package ([#243](#243)) ([b311fcb](b311fcb))
Copy link

github-actions bot commented Aug 9, 2024

🎉 This PR is included in version 19.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant