Skip to content

Add breaking change to 'poetry run' to changelog #6440

Closed

Description

@brandon-leapyear
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

The changelog currently mentions a bug fix around poetry run:

Fixed an error where command line options were not taken into account when using the run command. (#3618)

(link)

But this is actually a breaking change. On Poetry 1.1, the following:

poetry run foo -- arg1 arg2

would run foo -- arg1 arg2 in the poetry environment, but on Poetry 1.2, the -- is handled by poetry and stripped. This causes issues with tox, because tox -- arg1 arg2 is very different from tox arg1 arg2. With Poetry 1.2, the following is now required (as opposed to before, when it was optional): poetry run -- foo -- arg1 arg2. It's currently very difficult to search for this change in behavior in the CHANGELOG (I had to search for any instances of run in the CHANGELOG, and it ended up being under the 1.2.0a section)

Activity

  1. added
    area/docs
    status/triage
    on Sep 7, 2022
  2. catcombo commented on Sep 14, 2022

    @catcombo

    We have the same problem running custom Django command that accepts another command with arguments.

  3. removed
    status/triage
    on Sep 20, 2022
  4. neersighted commented on Sep 20, 2022

    @neersighted
    Member

    This is known -- I've just pushed an update to the release notes calling it out, and linking here.

  5. github-actions commented on Mar 1, 2024

    @github-actions

    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.

  6. locked as resolved and limited conversation to collaborators on Mar 1, 2024
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

    area/docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions