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

Quote version used in YAML #84

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Quote version used in YAML #84

merged 1 commit into from
Oct 18, 2021

Conversation

oesgalha
Copy link
Collaborator

@oesgalha oesgalha commented Oct 18, 2021

Using a semantic version without quotes in the CI YAML files isn't correct. Since YAML supports floating point numbers, a version like 3.10 could be interpreted as 3.1; 3.10 and any other version with a minor or patch with double digits are ok.

Semantic version values are strings, not numbers.

Check this at the YAML playground:
https://play.yaml.io/main/javascript?input=d3Jvbmc6IDMuMTAKZmluZTogIjMuMTAi

image


See actions/setup-python#160

Using a semantic version without quotes in the
CI YAML files isn't correct. Since YAML supports
floating point numbers, a version like 3.10 could
be interpreted as 3.1; 3.10 and any other version
with a minor or patch with double digits are ok.
Semantic version values should be handled as
strings, not as numbers.
@oesgalha oesgalha merged commit 4ae27c3 into main Oct 18, 2021
@oesgalha oesgalha deleted the fix/quote-version branch October 18, 2021 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant