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

Add --no-sync option to pdm-update #684

Closed
blueyed opened this issue Oct 14, 2021 · 2 comments · Fixed by #688
Closed

Add --no-sync option to pdm-update #684

blueyed opened this issue Oct 14, 2021 · 2 comments · Fixed by #688
Labels
⭐ enhancement Improvements for existing features

Comments

@blueyed
Copy link
Contributor

blueyed commented Oct 14, 2021

When updating requirements (e.g. via pdm update --update-eager) it should not automatically sync/install dependencies.

(My use case here is using pdm for managing dependencies, but would like to install them only via exported requirements.txt files then.)

Note that pdm update --update-eager --dry-run looks like the following, creating a __pypackages__ skeleton:

✔ 🔒 Lock successful
Packages to add:
…
% find __pypackages__
__pypackages__
__pypackages__/3.9
__pypackages__/3.9/lib
__pypackages__/3.9/include
__pypackages__/3.9/bin
__pypackages__/.gitignore

--no-sync exists with pdm-add already, and appears to make sense here then also.

@blueyed blueyed added the ⭐ enhancement Improvements for existing features label Oct 14, 2021
@frostming
Copy link
Collaborator

frostming commented Oct 14, 2021

What is the problem of --dry-run? Do you want to update the lock file but not install them?

@blueyed
Copy link
Contributor Author

blueyed commented Oct 15, 2021

Do you want to update the lock file but not install them?

Yes.

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

Successfully merging a pull request may close this issue.

2 participants