You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When providing a pyproject.toml that uses TOML 1.0.0 entries as python-version-file the action fails due to an error within the TOML parser.
Action version: v5.1.0
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Tools version:
Python 3.10 (the one installed by default)
Python 3.12 (the target version)
Repro steps:
Create a pyproject.toml file using a mixed list (here is the default value for Poetry Dynamic Versioning):
Run the action using the file as "Python version file".
Expected behavior:
The action installs Python >=3.12 in the job's container.
Actual behavior:
The action fails with the following error:
Error: Inline lists must be a single type, not a mix of string and inline-table at row 27, col 84, pos 757:
26: "(^release\\s*(?::.*?)?=\\s*['\"])[^'\"]*(['\"])",
27> { value = "(^__version_tuple__\\s*(?::.*?)?=\\s*\\()[^)]*(\\))", mode = "tuple" },
^
28: ]
The text was updated successfully, but these errors were encountered:
This tool must pull the previous version from NPM that's 4 years old. v2.2.5 must enforce Toml 0.5.0 rules, which forbid mixed types in an Array, as the error says.
I don't know if the builder or typescript compiler can pull in packages from Github instead of npm. But if so, fixing this should just need a version bump here and elsewhere:
Description:
When providing a
pyproject.toml
that uses TOML 1.0.0 entries aspython-version-file
the action fails due to an error within the TOML parser.Action version:
v5.1.0
Platform:
Runner type:
Tools version:
3.12
(the target version)Repro steps:
Create a
pyproject.toml
file using a mixed list (here is the default value for Poetry Dynamic Versioning):Run the action using the file as "Python version file".
Expected behavior:
The action installs Python
>=3.12
in the job's container.Actual behavior:
The action fails with the following error:
The text was updated successfully, but these errors were encountered: