-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Flux automated workload creates invalid yaml #2003
Comments
A workaround would be to remove the |
What IDE is this? This seems to be a bug in the IDE's parser. Empty mapping value nodes are valid. In YAML 1.2 :
In YAML 1.1:
So, Flux isn't generating an invalid document. However:
To update the file, Flux needs to parse it, edit the parsed representation and dump it again. Parsers are not perfect at preserving the initial YAML representation. We went to great lengths just to preserve YAML comments, writing a Python-based tool ( In this particular case, what happens is that We could generate Unfortunately, there is not much we can do besides improving the library (which we don't have the bandwidth for right now) or moving to a better parser We are planning to move from I have asked the author of |
@2opremio |
Thanks for the high quality bug report @ChSch3000 👍. I'm going to close this issue, on the basis that it is at least arguably correct behaviour (albeit one that caused your tooling problems); and, there is an acceptable workaround. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behaviour:
flux.weave.works/automated: "true"
annotationThe IDE is complainng about an invalid yaml file, because of a missing value for the creationTimespamp key.
Expected behavior
The YAMLs must be valid after checkout, so creationTimesptamp Key should not be empty. Either it should be
null
or left unmodified by flux.Additional context
Add any other context about the problem here, e.g
The text was updated successfully, but these errors were encountered: