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

fix(poetry): parse arg in script shebang line #1028

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AThePeanut4
Copy link
Contributor

What does this PR do

Parse the shebang line in the poetry wrapper script to ignore leading spaces, and split out any arguments, so that e.g. #! /usr/bin/python3 -sP doesn't error. On Windows, take into account the possibility that the interpreter path may be double-quoted so that it can contain spaces.

Fixes #1021

Standards checklist

  • The PR title is descriptive
  • I have read [CONTRIBUTING.md](http://contributing.md/)
  • Optional: I have tested the code myself
  • If this PR introduces new user-facing messages they are translated

@SteveLauC
Copy link
Member

Thanks for the patch! @AThePeanut4

cc @tsvikas, here is a build for Linux with this patch included, welcome to give it a test: https://github.com/SteveLauC/topgrade/releases/tag/pr1028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

topgrade errors on the poetry step
2 participants