Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML parsing "gotcha": version: 3.10 vs version: '3.10' #63

Open
atc0005 opened this issue Feb 3, 2023 · 0 comments
Open

YAML parsing "gotcha": version: 3.10 vs version: '3.10' #63

atc0005 opened this issue Feb 3, 2023 · 0 comments
Assignees
Labels

Comments

@atc0005
Copy link
Owner

atc0005 commented Feb 3, 2023

From actions/setup-python#160 (comment):

Please pay attention that task input follow semver notation.

As for the confusing error message, it is a feature of YAML parsing. When you specify input like

version: 3.10

3.10 is parsed as a number and it is trimmed to 3.1 that looks like expected behavior for numbers. You should specify input with quotes to treat it as string.

version: '3.10'

The first and the second examples in README file shows the correct way with quotes. But looks like the third and fourth examples show incorrect way.

@atc0005 atc0005 added the yaml label Feb 3, 2023
@atc0005 atc0005 self-assigned this Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant