Skip to content

Recommendations for caching poetry dependencies causes the wrong python version to be used for poetry install #846

@sdb9696

Description

@sdb9696

Description:

The recommendations for caching poetry dependencies causes the wrong python version to be used for poetry install.

Because pipx install poetry happens before setup-python and By default, Poetry will try to use the Python version used during Poetry’s installation to create the virtual environment for the current project.

Maybe the solution here is to update the docs to make sure that users know to run poetry env use ${{ steps.setup-python.outputs.python-path }}python prior to running poetry install. I have not tested that works however.

Action version:

v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

All versions of python affected except the default version installed on the github runner.

Repro steps:

Follow the steps outlined in advance-usage.md for caching poetry dependencies.

Run poetry install

Expected behavior:

poetry install should use the version of python set by setup-python

Actual behavior:

poetry install uses the default version of python from the runner os.

Metadata

Metadata

Assignees

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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy