fluidattacks / makes

A software supply chain framework powered by Nix.
https://makes.fluidattacks.tech/
MIT License
427 stars 42 forks source link

No python version argument in makePythonLock #1275

Closed blotero closed 7 months ago

blotero commented 7 months ago

Poetry offers a way to set the python environment version through poetry env use <python_version>.

Currently, when running makePythonLock on a project.toml which looks like:

[tool.poetry.dependencies]
python = "^3.12"

Will produce the following output:

[INFO] Generating poetry.lock
The currently activated Python version 3.11.6 is not supported by the project (^3.12).
Trying to find and use a compatible version.

Poetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command.

An additional python version argument is required in this builtin for letting poetry to know this detail.