Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Poetry virtualenv is not created when the project is not in the repository's root #539

Copy link
Copy link
Closed
@elilutsky

Description

@elilutsky
Issue body actions

Description:
poetry env use is run in the repository's root, causing it to fail since no pyproject.toml is present.

const {
exitCode,
stderr
} = await exec.getExecOutput(
`poetry env use ${pythonLocation}`,
undefined,
{ignoreReturnCode: true}
);

Currently, only a warning is being displayed:

image

Actually, this is solved by @oranav in #447.

Action version:
v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
All poetry versions

Repro steps:
Create a repository with a Poetry project inside a subfolder and run the action.

Expected behavior:
Either fail hard or run env use on all Poetry projects inside the repository

Actual behavior:
Prints a warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.