Open Jazzinghen opened 1 week ago
The dev version of the toml library used by this tool has supported Toml 1.0.0-rc1 (that allows mixed types in arrays) since 2019.
It's currently on v3.0.0 https://github.com/iarna/iarna-toml/releases/tag/v3.0.0
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.
https://www.npmjs.com/package/@iarna/toml
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:
Hello @Jazzinghen, Thank you for creating this issue and we will look into it :)
@aparnajyothi-y Thank you for letting me know.
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: