Skip to content

Poetry publish throws same error as poetry config #4

Description

@eredwine

❔ 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")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions