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: sync command should really add --sync option to installer #9946

Merged
merged 10 commits into from
Jan 6, 2025

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented Jan 5, 2025

Pull Request Check List

Resolves: #9943

  • Added tests for changed code.
  • Updated documentation for changed code.

@trim21 trim21 force-pushed the sync-command-should-pass-sync branch from cfa5155 to 49c161d Compare January 5, 2025 19:25
@radoering
Copy link
Member

not sure how to test this...

You can mock installer and check that requires_synchronization is called with True.

src/poetry/console/commands/sync.py Outdated Show resolved Hide resolved
tests/console/commands/test_sync.py Show resolved Hide resolved
@radoering radoering changed the title fix: sync command should real add --sync option to installer fix: sync command should really add --sync option to installer Jan 6, 2025
@radoering radoering merged commit 4df8d63 into python-poetry:main Jan 6, 2025
73 checks passed
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 sync --only=main doesn't remove package from other groups like poetry install --sync --only=main do
3 participants