Email or username:

Password:

Forgot your password?
Top-level
Anselm Schüler

@druskus this is just misuse of YAML.
if you want to do something like this, you can:
- use a quoted scalar. in JSON "1.70" w/o quotes is also 1.7
- use an explicit tag. if using the JSON or core schema you can write !!str 1.70
- use the failsafe schema. this interprets everything as strings always. since this looks like bash it wouldn't even matter
- use a custom schema that always parses specifically the version field as a version identifier

4 comments
Anselm Schüler

@druskus of course everything except the simplest solution (quotes) requires having an actually featureful (and hopefully compliant) YAML parser

drusk

@anselmschueler
For sure, obviously this is is a misuse of YAML. The problem is that these mistakes are silent, and they keep happening over and over.
This is a big design flaw in YAML in my opinion.

zarel

@anselmschueler @druskus GitHub actions don't support yaml anchors so I wouldn't call it "featureful"

Go Up