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

Poetry publish throws same error as poetry config #4

Open
eredwine opened this issue May 2, 2023 · 0 comments
Open

Poetry publish throws same error as poetry config #4

eredwine opened this issue May 2, 2023 · 0 comments
Labels
question Further information is requested

Comments

@eredwine
Copy link

eredwine commented May 2, 2023

❔ What are you experiencing an issue with?

Latest Release

❔ Version

v2.5.30

🐞 Description

The poetry publish catch block in publishPoetry throws the same error message as the poetry config:

throw new Error(`Failed to run "poetry config repositories.repo ${repoUrl}"`)

This makes it harder to figure out which of the two commands failed. Could the second error thrown be something like:

throw new Error(Failed to run "poetry publish --build --repository --repo")

⏺️ Steps To Reproduce

Set PYPI_TOKEN to an invalid token. Run the publish step and observe the error message.

📒 Relevant Log Output

No response

💡 Possible Solution

throw new Error(Failed to run "poetry publish --build --repository --repo")
@eredwine eredwine added the question Further information is requested label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant