-
-
Notifications
You must be signed in to change notification settings - Fork 423
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 a --no-input
options to pdm sync for automation scenario
#2934
Comments
The prompt shows if |
I don't think the verbose mode should include "showing a prompt in case of missing credentials". In our CI and docker build, we want the verbose mode but not the prompt. |
True, but the opposite holds: when |
Isn't it the problem that the spinner prevents a prompt to be shown? I am not sure but I think in other tools, a spinner doesn't prevent a prompt to be shown. |
Fixes #2934 Signed-off-by: Frost Ming <[email protected]>
Fixes #2934 Signed-off-by: Frost Ming <[email protected]>
Thank you very much, btw :) |
Is your feature/enhancement proposal related to a problem? Please describe.
Hello. We use PDM a lot in CI and in Docker build with a private PyPI registry, where we often provides credentials with a
.netrc
file. When there is a problem with this credentials, PDM fails with this very misleading error that confuses all our developers:Describe the solution you'd like
We would enjoy an option like
apt-get install --yes
orpoetry --no-interaction
to inform PDM that it's not facing an human and thus it is useless to ressort to a prompt, just fail showing the problem. Since Poetry has--no-interaction
, this one should be preferred I think.Cheers
The text was updated successfully, but these errors were encountered: