Switch from unmaintained yaml-rust to yaml-rust2#422
Conversation
NSoiffer
left a comment
There was a problem hiding this comment.
Thanks for spotting that and the changes.
|
@rocallahan: Hmm... this causes a failure in Rules\Languages\en\definitions.yaml, which is one of the first YAML files that is read. Did you run the tests? If so, were there no failures? The "yaml-rust2" documentation says it is a drop in replacement for "yaml-rust", but that doesn't seem to be true. The error "Parse error!!: invalid indentation at byte 3359 line 52 column 3" happens at the end of first definition in definitions.yaml. It didn't cause a problem in "yaml-rust" and the Red Hat YAML vscode extension thinks the file is syntactically OK. It does not appear to be a space vs tab issue as there are only spaces present in that mapping. Do you have any suggestions. If not, I'm going to back out the change. |
|
Sorry, I didn't run the tests. You should probably back this out for now. But someone will have to fix this sooner or later I guess; RustSec has an advisory marking yaml-rust as unmaintained, which triggers alarms in various CI setups. |
|
I don't suppose you noticed anything in the documentation saying to set a certain value for compatibility with the old version? It seems strange that the new version complains when the old version didn't and the yaml syntax Checker in Visual Studio code think it's fine also. |
|
[Updated] The vscode Red Hat accepts the "bad" syntax also. I've put in a feature request asking for an option to accept this format. |
Resolves #421