-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
FR: add --check-only
flag to pip sync
command
#3021
Comments
Can we resolve this by adding |
Probably! What would the output be if everything is synchronized already? |
Right now it ends with "Would make no changes" but we could consider using separate exit codes. |
I think it would be preferable to have an additional |
Can consider it but will take a lot more time and work given that it's committing to a public API that we'll need to build and maintain in perpetuity. |
Then I'm definitely fine with the quicker solution 🙂 |
This feature seems related to the recurring usecase of the CI checking that the committed A workaround looks like the following:
For reference, the feature has been asked for |
Hi, It would be great if it would have a non-zero return code, in case there are deviations. For comparison, |
We have a need to check whether environments are synchronized without performing action so it would be nice to have such a flag that would produce JSON output like:
The text was updated successfully, but these errors were encountered: