Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
@elilutsky

Description

@elilutsky

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 working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions