-
Notifications
You must be signed in to change notification settings - Fork 1k
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
schedule.time's data type interpretation may be confusing #3615
Comments
IIUC, that's apparently because Dependabot is not using YAML 1.2, which "fixed" the ambiguity by dropping some unorthodox datatypes: eemeli/yaml#264 |
Hi @aisemu, the The error you're seeing is from the json-schema validation that we run on the parsed yaml object. Longer-term, we're hoping to provide a cron-based syntax for scheduling, although there is no planned timeline for that yet. |
Hi @jurre! Thanks for your reply!
That is known, and the error message makes that clear!
YAML is not parsing
This was apparently deemed as a confusing feature, so the YAML 1.2 spec dropped it.
Although that would be very nice, perhaps some simpler adjustments would suffice! |
Hey @aisamu, long time no see ;) My quick take is: I don't think we care about supporting sexigesimal numbers, so I'd be fine supporting yaml 1.2 (the other changes it makes seem fine to me). We use ruby's default yaml parser (which is Psych, which is a wrapper around libyaml). Psych doesn't have the option to pick a yaml version, nor does it look like libyaml does. The fix here is going to be once libyaml supports 1.2 properly (see yaml/libyaml#20) you'll have the option to use a YAML directive to specify which version you're using, and you can select 1.2 to get this behavior (it may become the default, I'm not sure). Note, I tried directives in a I'm going to close this for now as it will be fixed when our dependencies support it, but feel free to re-open if there's any new info! |
Some YAML serializers transform a string of the form "hh:mm" into a value without quotes.
Current behavior in GitHub-native Dependabot:
Using a YAML file containing an unquoted
schedule.time
field fails with:Basic info:
Package ecosystem:
npm
Please note that I'm not sure if that's a bug on Dependabot or on the serializer.
Regardless of the root cause, it may be useful to handle those cases to aid those less acquainted with YAML's corner cases (like myself)!
Alternatively, I'd happily use a
dependabot.json
.Thanks for writing this tool!
It's tremendously valuable for us.
The text was updated successfully, but these errors were encountered: