-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 run no longer executes local bash scripts #7959
Comments
Having the same issue for django projects here. They usually have a |
@bellini666 same here, have updated them to |
I'm having the same issue for any python script.
however, like the original report, specifying the interpreter does work:
Including a shebang in the script does not help execute either script directly without specifying the interpreter, nor does using absolute path. These commands all work as expected in the normal shell and within
All of this works fine within poetry 1.4.2. I only see the failure in poetry 1.5.0. |
Verified that this was fixed in poetry 1.5.1 |
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. |
poetry new poetry-bug
-vvv
option) and have included the output below.Issue
In Poetry 1.4.2, you could execute local shell scripts using
poetry run
, e.g.poetry run ./pyright.sh
.This no longer works with Poetry 1.5
The changelog mentions #7606, but this should only affect python scripts listed in
[tool.poetry.scripts]
, which is not the case here.So I would expect that this still works.
Workaround
Explicitly calling
bash
with the script as argument, i.e.poetry run bash ./pyright.sh
still worksThe text was updated successfully, but these errors were encountered: