-
Notifications
You must be signed in to change notification settings - Fork 2.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
Return a non-zero exit code when publishing to a repository fails #239
Comments
Just curious: Do you still see this behavior with the latest version of Poetry? |
@nchammas Yes, In poetry 0.11.4, still see the same behavior. |
Publishing with wrong credentials ends up in the same behavior |
same thing in last version : In [6]: subprocess.check_output('poetry --version', shell=True).decode()
Out[6]: 'Poetry 0.12.6\n'
In [7]: subprocess.check_call('poetry publish --username=wrong_username_éù$d --password=mokmokmo', shell=True)
Publishing aaaaa (0.1.0) to PyPI
Out[7]: 0 should be labeled as a bug since it's definitely not the expected behavior |
@nchammas yes, this behavior exists on 0.12.7. |
This should be fixed in commit 9035140. It will be released in the next bugfix version. |
Version |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Context: Using Poetry in Build (CI/CD) systems.
While using Poetry to upload a wheel file to Sonatype Nexus repository, Repository throws a 400 error if the wheel file with the same version is already available in the repository.
Example:
poetry publish $private_nexus_url --build
Run again without updating the version, i.e the project's version is still 0.1.0
poetry publish $private_nexus_url --build
Error message:
Improvement/Bug:
In the context of CI/CD systems, a non-zero exit code along with error message is required else the build systems fail silently without uploading the latest artifact.
Exit with a non zero code along with error message
Note: We could configure Nexus to allow republishing the same artifact version again.
The text was updated successfully, but these errors were encountered: