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

tool.poetry.scripts: can't open file #4287

Open
3 tasks done
ethanabrooks opened this issue Jul 15, 2021 · 2 comments
Open
3 tasks done

tool.poetry.scripts: can't open file #4287

ethanabrooks opened this issue Jul 15, 2021 · 2 comments
Labels
kind/bug Something isn't working as expected status/confirmed Issue is reproduced and confirmed status/triage This issue needs to be triaged

Comments

@ethanabrooks
Copy link

ethanabrooks commented Jul 15, 2021

Issue

The [tool.poetry.scripts] section of this pyproject.toml is taken directly from here. I am trying to use the functionality from python-poetry/poetry-core#40

I run:

❯ poetry install
Installing dependencies from lock file

Installing the current project: poetry-issue (0.1.0)

Then:

❯ poetry -vvv run sh sample_shscript
Using virtualenv: /home/ethanbro/.cache/pypoetry/virtualenvs/poetry-issue-wxXJaBmj-py3.6
sh: 0: Can't open sample_shscript

Note that script-files/sample_script.sh exists:

❯ cat script-files/sample_script.sh
#! /usr/bin/env bash
echo hello

What am I doing wrong?

@ethanabrooks ethanabrooks added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jul 15, 2021
@luizribeiro
Copy link

I'm running into similar issues. Running scripts doesn't work with neither poetry run or within poetry shell.

@finswimmer
Copy link
Member

Hello,

I can confirm this with the latest version in master. Also the documentation for this feature is missing in the documentation at all.

PRs and triages are welcome :)

fin swimmer

@finswimmer finswimmer added the status/confirmed Issue is reproduced and confirmed label Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/confirmed Issue is reproduced and confirmed status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants