-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fix ocm issue 179, block in config yields invalid yaml #734
Fix ocm issue 179, block in config yields invalid yaml #734
Conversation
@mandelsoft , can you please takle a look at this proposal? |
819ebf5
to
527d458
Compare
@dee0sap All you have to do is indent the value that you wish to substitute correctly. We marshal values before doing anything this PR now fixes that in the sense that we don't marshal primitive values. That marshalling broke the syntax of the value that we are trying to insert. So we leave values alone. But we do marshal complex types like struct, pointer, maps, etc. |
- Reduce test fragility by using MatchYAML and MatchJSON instead of checking for string equality which breaks with minor white space changes - Remove unused Set function which exposes implementation detail of goccy usage
β¦-model#179. Confirmed that pre-yqlib the test fails and that after yqlib it passes.
β¦toring a non-string value
β¦e substitution data is converted to yaml format
I think this PR is ready for whatever review process you guys have. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
If anything breaks because of this, we'll iterate on a solution. ;) |
Description
Fixes open-component-model/ocm-project#179
What type of PR is this? (check all applicable)
Related Tickets & Documents
Screenshots
Added tests?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Added to documentation?
Checklist: